Skip to content

Commit

Permalink
sh: Fix address to decompress at when CONFIG_32BIT=y
Browse files Browse the repository at this point in the history
When running in 32BIT mode the P1SEG region doesn't necessarily provide
a window onto RAM (it depends how the bootloader setup the PMB). The
correct location to place the decompressed kernel is the physical
address of _text.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
  • Loading branch information
Matt Fleming committed Apr 25, 2010
1 parent 7c4584d commit b161313
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sh/boot/compressed/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ init_stack_addr:
decompress_kernel_addr:
.long decompress_kernel
kernel_start_addr:
#ifdef CONFIG_32BIT
.long ___pa(_text+PAGE_SIZE)
#else
.long _text+PAGE_SIZE
#endif

.align 9
fake_headers_as_bzImage:
Expand Down

0 comments on commit b161313

Please sign in to comment.