[ARM] Allow r2 to be passed through the decompressor to the kernel
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 12 Jan 2006 17:17:57 +0000 (17:17 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Jan 2006 17:17:57 +0000 (17:17 +0000)
commitf4619025a51747a3788fd1bb6bdc46e368a889a7
tree81b5c860e1e9b08dbf8ba292ae17eb9ac688f23a
parent90303b102353302e84758f245906368907e6a23b
[ARM] Allow r2 to be passed through the decompressor to the kernel

This is part of a patch from Marc Singer to allow r2 to be
passed to the kernel.  Marc's original comments follow:

This revised R2 (atags pointer) patch incorporates comments from Nico
Pitre and Ben Dooks. It modifies the head.S files such that the R2
value set by the bootloader is conveyed to the kernel startup code.
The kernel head.S heuristically validates the pointer. It will set R2
to zero if it believes the pointer is invalid. Presently, it requires
that the ATAGS list reside in the first 16KiB of physical RAM.
Relaxing this contraint may be both desirable as well as tricky.

Signed-off-by: Marc Singer <elf@buici.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S