diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-03-18 09:07:08 -0500 |
---|---|---|
committer | Rob Herring <r.herring@freescale.com> | 2010-03-18 17:27:16 -0500 |
commit | 057c8409baf6baa7e9a0cb4f674cde4b7ef9eca7 (patch) | |
tree | 68b9fde4e0d48d7352be24f0fb07e13cf9373fc9 /Documentation | |
parent | 4f1e2826d171166b6ab78eeb81e8c2837805b7c0 (diff) |
Allow PHYS_OFFSET to be runtime determined
This bases on work done earlier by Lennert Buytenhek and Mark A. Greer.
Compared to their approach zreladdr isn't guessed based on the pc
register but the bootloader is expected to pass PHYS_OFFSET in r3. If
that value doesn't look right (e.g. isn't aligned) it is guessed based
on the value of sp. This should work for CONFIG_ZBOOT_ROM, too.
To use it for your machine removing the definition of PHYS_OFFSET from
<mach/memory.h> and selecting CONFIG_RUNTIME_PHYS_OFFSET should be
enough.
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Steve Chen <schen@mvista.com>
Cc: Mark A. Greer <mgreer@mvista.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/arm/Booting | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/arm/Booting b/Documentation/arm/Booting index 76850295af8f..ec228a472bec 100644 --- a/Documentation/arm/Booting +++ b/Documentation/arm/Booting @@ -126,6 +126,7 @@ In either case, the following conditions must be met: r0 = 0, r1 = machine type number discovered in (3) above. r2 = physical address of tagged list in system RAM. + r3 = PHYS_OFFSET - CPU mode All forms of interrupts must be disabled (IRQs and FIQs) |