diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-07 20:02:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-07 20:02:29 -0400 |
commit | c52ecdab06ff3b4d0f8914951eb74dc8b049f51c (patch) | |
tree | 291a55adb3be3fec45dcc6affa72d9d1244ba42a /arch/arm/boot/compressed/head.S | |
parent | dc315011312f04433e0fdd34b6a3dde4bfde1e48 (diff) | |
parent | c0f85a82484c25d23b44a87a35daddb2b276b4aa (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] pxa: fix pxa27x keyboard driver
[ARM] Fix 4417/1: Serial: Fix AMBA drivers locking
[ARM] 4421/1: AT91: Value of _KEY fields.
[ARM] Solve buggy smp_processor_id() usage
[ARM] 4422/1: Fix default value handling in gpio_direction_output (PXA)
[ARM] 4419/1: AT91: SAM9 USB clocks check for suspending
[ARM] 4418/1: AT91: Number of programmable clocks differs
[ARM] 4392/2: Do not corrupt the SP register in compressed/head.S
Diffstat (limited to 'arch/arm/boot/compressed/head.S')
-rw-r--r-- | arch/arm/boot/compressed/head.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index 2568d311be21..23348e9561b9 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -247,7 +247,7 @@ not_relocated: mov r0, #0 | |||
247 | mov r3, r7 | 247 | mov r3, r7 |
248 | bl decompress_kernel | 248 | bl decompress_kernel |
249 | 249 | ||
250 | add r0, r0, #127 | 250 | add r0, r0, #127 + 128 @ alignment + stack |
251 | bic r0, r0, #127 @ align the kernel length | 251 | bic r0, r0, #127 @ align the kernel length |
252 | /* | 252 | /* |
253 | * r0 = decompressed kernel length | 253 | * r0 = decompressed kernel length |
@@ -269,6 +269,7 @@ not_relocated: mov r0, #0 | |||
269 | stmia r1!, {r9 - r14} | 269 | stmia r1!, {r9 - r14} |
270 | cmp r2, r3 | 270 | cmp r2, r3 |
271 | blo 1b | 271 | blo 1b |
272 | add sp, r1, #128 @ relocate the stack | ||
272 | 273 | ||
273 | bl cache_clean_flush | 274 | bl cache_clean_flush |
274 | add pc, r5, r0 @ call relocation code | 275 | add pc, r5, r0 @ call relocation code |
@@ -476,6 +477,7 @@ __common_mmu_cache_on: | |||
476 | */ | 477 | */ |
477 | .align 5 | 478 | .align 5 |
478 | reloc_start: add r9, r5, r0 | 479 | reloc_start: add r9, r5, r0 |
480 | sub r9, r9, #128 @ do not copy the stack | ||
479 | debug_reloc_start | 481 | debug_reloc_start |
480 | mov r1, r4 | 482 | mov r1, r4 |
481 | 1: | 483 | 1: |
@@ -486,6 +488,7 @@ reloc_start: add r9, r5, r0 | |||
486 | 488 | ||
487 | cmp r5, r9 | 489 | cmp r5, r9 |
488 | blo 1b | 490 | blo 1b |
491 | add sp, r1, #128 @ relocate the stack | ||
489 | debug_reloc_end | 492 | debug_reloc_end |
490 | 493 | ||
491 | call_kernel: bl cache_clean_flush | 494 | call_kernel: bl cache_clean_flush |