From: Reinhard Meyer Date: Fri, 06 Aug 2010 18:27:51 +0200 Subject: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache In-Reply-To: References: <4C515BB9.3080305@denx.de> <4C529758.2020600@ge.com> <4C57EC6D.6070805@denx.de> <4C5B9DB5.7020009@denx.de> <20100806154649.F2D9E1524E4@gemini.denx.de> Message-ID: <4C5C3807.80408@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Ben Gardiner wrote: > But I think that the value loaded to sp is still wrong because of the > restrictions on immediate arguments in ARM instructions. > > with (0x80000000 + 128*1024 -16): > --- > c1080078 : > c1080078: e59fd328 ldr sp, [pc, #808] ; c10803a8 > c108007c: e3a00000 mov r0, #0 ; 0x0 > c1080080: eb00017f bl c1080684 > > and with (0x80000000 + 128*1024 -8): > --- > c1080078 : > c1080078: e59fd328 ldr sp, [pc, #808] ; c10803a8 > c108007c: e3a00000 mov r0, #0 ; 0x0 > c1080080: eb00017f bl c1080684 > The value loaded into SP is IN the location at PC+808... look there. About in 0xc1080078+0x0328 give or take a word. Reinhard