From: Andreas =?iso-8859-1?q?M=FCller?= Date: Tue, 20 Dec 2011 02:15:01 +0100 Subject: [U-Boot] [PATCH] overo: add SPL support In-Reply-To: References: <201112151534.31626.schnitzeltony@gmx.de> <201112200203.01529.schnitzeltony@gmx.de> Message-ID: <201112200215.01926.schnitzeltony@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, December 20, 2011 02:08:18 AM Tom Rini wrote: > > 'objdump -dSt' shows (the memory mappings I attached were not really > > helpful - sorry next time I know): > > > > 4020ae14 l O .data 00000004 i2c_base > > 80000068 l O .bss 00000004 current_bus > > 8000006c l O .bss 0000000c bus_initialized > > > > 'i2c_base' is correctly located in SRAM but 'current_bus' and > > 'bus_initialized' are located in CS0 SDRAM which is at the time of call > > not yet initalized. This fits to the crash behaviour: Accessing > > 'i2c_base' does not cause trouble. How can I move 'current_bus' and > > 'bus_initialized' to SRAM? > > Ah-ha! Good work. If you initialize them to a non-zero value, > statically (and make sure the code doesn't assume they're 0 by > default), this will change. LOL: I tried already to set them to 0!