提交 040f43e0 编写于 作者: P Paul Mundt

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

Opencode the MEMORY_START offset directly, sh64 uses a slightly different
calculation.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 59f00296
...@@ -128,9 +128,13 @@ void decompress_kernel(void) ...@@ -128,9 +128,13 @@ void decompress_kernel(void)
{ {
unsigned long output_addr; unsigned long output_addr;
#ifdef CONFIG_SUPERH64
output_addr = (CONFIG_MEMORY_START + 0x2000);
#else
output_addr = PHYSADDR((unsigned long)&_text+PAGE_SIZE); output_addr = PHYSADDR((unsigned long)&_text+PAGE_SIZE);
#ifdef CONFIG_29BIT #ifdef CONFIG_29BIT
output_addr |= P2SEG; output_addr |= P2SEG;
#endif
#endif #endif
output = (unsigned char *)output_addr; output = (unsigned char *)output_addr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册