dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Paul Mundt 2009-07-11 13:36:25 -04:00
parent 59f002964f
commit 040f43e0bf
1 changed files with 4 additions and 0 deletions

View File

@ -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;