Skip to contentSkip to conversation

allow CFG_ALT_MEMTEST to be used on ARM

PATCH New Anders Larsen 2 participants 2 messages Sep 17, 2003 – Sep 18, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 allow CFG_ALT_MEMTEST to be used on ARM

Hi,

here's a patch against 0.4.8 that allows CFG_ALT_MEMTEST to be used on systems where writing to address zero crashes the system.

On ARM (well, at least on my PXA255) writing to address zero causes a "data abort" (which, IMHO, is a Good Thing(tm)).

This patch allows the board-specific config to define an alternative scratch-address (CFG_MEMTEST_SCRATCH) to be used by the extensive memory test.
CFG_MEMTEST_SCRATCH does not have to point to physical RAM, it only has to point to a writeable (not necessarily readable) address.

CHANGELOG:
Allow CFG_ALT_MEMTEST on systems where address zero isn't writeable

Cheers
Anders

-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot.alt-memtest.patch.gz
Type: application/x-gzip
Size: 514 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20030917/29b470f7/attachment.bin

#1 lore raw

PATCH 1/1 allow CFG_ALT_MEMTEST to be used on ARM

Quoted 3 lines · In message <[email protected]> you wrote:

CHANGELOG:
Allow CFG_ALT_MEMTEST on systems where address zero isn't writeable

Added. Will show up on CVS "soon". Thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Dealing with failure is easy: work hard to improve. Success  is  also
easy  to  handle:  you've  solved  the  wrong  problem.  Work hard to
improve.