Skip to content

Commit 040f43e

Browse files
committed
sh64: Don't use PHYSADDR() for output_addr calculation.
Opencode the MEMORY_START offset directly, sh64 uses a slightly different calculation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 59f0029 commit 040f43e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/sh/boot/compressed/misc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,13 @@ void decompress_kernel(void)
128128
{
129129
unsigned long output_addr;
130130

131+
#ifdef CONFIG_SUPERH64
132+
output_addr = (CONFIG_MEMORY_START + 0x2000);
133+
#else
131134
output_addr = PHYSADDR((unsigned long)&_text+PAGE_SIZE);
132135
#ifdef CONFIG_29BIT
133136
output_addr |= P2SEG;
137+
#endif
134138
#endif
135139

136140
output = (unsigned char *)output_addr;

0 commit comments

Comments
 (0)