diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:50:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:50:49 -0400 |
commit | 9a64388d83f6ef08dfff405a9d122e3dbcb6bf38 (patch) | |
tree | a77532ce4d6d56be6c6c7f405cd901a0184250fb /arch/powerpc/boot/ps3-head.S | |
parent | e80ab411e589e00550e2e6e5a6a02d59cc730357 (diff) | |
parent | 14b3ca4022f050f8622ed282b734ddf445464583 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (202 commits)
[POWERPC] Fix compile breakage for 64-bit UP configs
[POWERPC] Define copy_siginfo_from_user32
[POWERPC] Add compat handler for PTRACE_GETSIGINFO
[POWERPC] i2c: Fix build breakage introduced by OF helpers
[POWERPC] Optimize fls64() on 64-bit processors
[POWERPC] irqtrace support for 64-bit powerpc
[POWERPC] Stacktrace support for lockdep
[POWERPC] Move stackframe definitions to common header
[POWERPC] Fix device-tree locking vs. interrupts
[POWERPC] Make pci_bus_to_host()'s struct pci_bus * argument const
[POWERPC] Remove unused __max_memory variable
[POWERPC] Simplify xics direct/lpar irq_host setup
[POWERPC] Use pseries_setup_i8259_cascade() in pseries_mpic_init_IRQ()
[POWERPC] Turn xics_setup_8259_cascade() into a generic pseries_setup_i8259_cascade()
[POWERPC] Move xics_setup_8259_cascade() into platforms/pseries/setup.c
[POWERPC] Use asm-generic/bitops/find.h in bitops.h
[POWERPC] 83xx: mpc8315 - fix USB UTMI Host setup
[POWERPC] 85xx: Fix the size of qe muram for MPC8568E
[POWERPC] 86xx: mpc86xx_hpcn - Temporarily accept old dts node identifier.
[POWERPC] 86xx: mark functions static, other minor cleanups
...
Diffstat (limited to 'arch/powerpc/boot/ps3-head.S')
-rw-r--r-- | arch/powerpc/boot/ps3-head.S | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/arch/powerpc/boot/ps3-head.S b/arch/powerpc/boot/ps3-head.S index a55c2735f759..b6fcbaf5027b 100644 --- a/arch/powerpc/boot/ps3-head.S +++ b/arch/powerpc/boot/ps3-head.S | |||
@@ -27,8 +27,9 @@ | |||
27 | /* | 27 | /* |
28 | * __system_reset_overlay - The PS3 first stage entry. | 28 | * __system_reset_overlay - The PS3 first stage entry. |
29 | * | 29 | * |
30 | * The bootwraper build script copies the 0x100 bytes at symbol | 30 | * The bootwraper build script copies the 512 bytes at symbol |
31 | * __system_reset_overlay to offset 0x100 of the rom image. | 31 | * __system_reset_overlay to offset 0x100 of the rom image. This symbol |
32 | * must occupy 512 or less bytes. | ||
32 | * | 33 | * |
33 | * The PS3 has a single processor with two threads. | 34 | * The PS3 has a single processor with two threads. |
34 | */ | 35 | */ |
@@ -47,8 +48,6 @@ __system_reset_overlay: | |||
47 | 48 | ||
48 | mfspr r3, 0x88 | 49 | mfspr r3, 0x88 |
49 | cntlzw. r3, r3 | 50 | cntlzw. r3, r3 |
50 | li r4, 0 | ||
51 | li r5, 0 | ||
52 | beq 1f | 51 | beq 1f |
53 | 52 | ||
54 | /* Secondary goes to __secondary_hold in kernel. */ | 53 | /* Secondary goes to __secondary_hold in kernel. */ |
@@ -57,8 +56,14 @@ __system_reset_overlay: | |||
57 | mtctr r4 | 56 | mtctr r4 |
58 | bctr | 57 | bctr |
59 | 58 | ||
60 | /* Primary delays then goes to _zimage_start in wrapper. */ | ||
61 | 1: | 59 | 1: |
60 | /* Save the value at addr zero for a null pointer write check later. */ | ||
61 | |||
62 | li r4, 0 | ||
63 | lwz r3, 0(r4) | ||
64 | |||
65 | /* Primary delays then goes to _zimage_start in wrapper. */ | ||
66 | |||
62 | or 31, 31, 31 /* db16cyc */ | 67 | or 31, 31, 31 /* db16cyc */ |
63 | or 31, 31, 31 /* db16cyc */ | 68 | or 31, 31, 31 /* db16cyc */ |
64 | 69 | ||
@@ -67,16 +72,18 @@ __system_reset_overlay: | |||
67 | mtctr r4 | 72 | mtctr r4 |
68 | bctr | 73 | bctr |
69 | 74 | ||
75 | . = __system_reset_overlay + 512 | ||
76 | |||
70 | /* | 77 | /* |
71 | * __system_reset_kernel - Place holder for the kernel reset vector. | 78 | * __system_reset_kernel - Place holder for the kernel reset vector. |
72 | * | 79 | * |
73 | * The bootwrapper build script copies 0x100 bytes from offset 0x100 | 80 | * The bootwrapper build script copies 512 bytes from offset 0x100 |
74 | * of the rom image to the symbol __system_reset_kernel. At runtime | 81 | * of the rom image to the symbol __system_reset_kernel. At runtime |
75 | * the bootwrapper program copies the 0x100 bytes at __system_reset_kernel | 82 | * the bootwrapper program copies the 512 bytes at __system_reset_kernel |
76 | * to ram address 0x100. This symbol must occupy 0x100 bytes. | 83 | * to ram address 0x100. This symbol must occupy 512 bytes. |
77 | */ | 84 | */ |
78 | 85 | ||
79 | .globl __system_reset_kernel | 86 | .globl __system_reset_kernel |
80 | __system_reset_kernel: | 87 | __system_reset_kernel: |
81 | 88 | ||
82 | . = __system_reset_kernel + 0x100 | 89 | . = __system_reset_kernel + 512 |