]> err.no Git - linux-2.6/commit
[ARM] 4226/1: initial .data and .bss mappings of XIP kernel should be TEXT_OFFSET
authorNicolas Pitre <nico@cam.org>
Wed, 21 Feb 2007 14:32:28 +0000 (15:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Feb 2007 16:41:39 +0000 (16:41 +0000)
commitec3622d963522432a873cc1b6f66fed6fceddc18
tree190048563eab2d45ea4e6540192d2384626ba939
parente98ff7f6d8164c5636538998fb7d1e08b1fbbddd
[ARM] 4226/1: initial .data and .bss mappings of XIP kernel should be TEXT_OFFSET
 aware

Since TEXT_OFFSET is meant to determine RAM location for kernel use,
itshould affect .data and .bss initial mapping in the XIP case.
Otherwise a XIP kernel would crash if TEXT_OFFSET gets somewhat larger
than 2MB.

Corresponding code is also moved up a bit to be near the similar .text
mapping code making the whole a bit more straight forward to understand.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S