From: Anders Larsen Date: Mon, 29 Nov 2004 15:33:16 +0100 Subject: [U-Boot-Users] [PATCH] !CFG_MEMTEST_SCRATCH - do not dereference NULL In-Reply-To: <065ACD8E84315E4394C835E398C8D5EBB1B8B0@COSSMGMBX02.email.corp.tld> References: <065ACD8E84315E4394C835E398C8D5EBB1B8B0@COSSMGMBX02.email.corp.tld> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de "VanBaren, Gerald (AGRE)" : >The proper fix is, for your board, change >the assignment "vu_long *dummy = 0x00000000;" to point to writable RAM >on your board. This is the purpose of CFG_MEMTEST_SCRATCH. Please, please read the README, which says: "- CFG_MEMTEST_SCRATCH: Scratch address used by the alternate memory test You only need to set this if address zero isn't writeable" The last statement implies that you DO need to set CFG_MEMTEST_SCRATCH if address zero ISN'T writeable. No need to change any code at all. Cheers Anders