]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] New reg.h for the zImage
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 22 Mar 2007 06:02:21 +0000 (17:02 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 26 Mar 2007 05:11:20 +0000 (15:11 +1000)
commit2b3a649437702e1a948bce5ce8d5ca171ab2a4ed
tree8ee71ecb846416925a3e5796a8f66626db0c6513
parent5a2e8ad630b384549f3c50d3a653de6036872f7c
[POWERPC] New reg.h for the zImage

This patch adds a reg.h to the zImage code, with common definitions
for accessing system registers.  For now, this includes functions for
retrieving the PVR and the stack pointer.  This patch then uses the
new reg.h to let start() display the running stack address without
having to explicitly pass the stack as a parameter from the asm code.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/crt0.S
arch/powerpc/boot/main.c
arch/powerpc/boot/ops.h
arch/powerpc/boot/reg.h [new file with mode: 0644]