Skip to content

Commit

Permalink
sh64: Don't use PHYSADDR() for output_addr calculation.
Browse files Browse the repository at this point in the history
Opencode the MEMORY_START offset directly, sh64 uses a slightly different
calculation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jul 11, 2009
1 parent 59f0029 commit 040f43e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sh/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ void decompress_kernel(void)
{
unsigned long output_addr;

#ifdef CONFIG_SUPERH64
output_addr = (CONFIG_MEMORY_START + 0x2000);
#else
output_addr = PHYSADDR((unsigned long)&_text+PAGE_SIZE);
#ifdef CONFIG_29BIT
output_addr |= P2SEG;
#endif
#endif

output = (unsigned char *)output_addr;
Expand Down

0 comments on commit 040f43e

Please sign in to comment.