Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 040f43e0 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh64: Don't use PHYSADDR() for output_addr calculation.



Opencode the MEMORY_START offset directly, sh64 uses a slightly different
calculation.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 59f00296
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;