提交 151a9f4a 编写于 作者: B Benjamin Herrenschmidt

powerpc: Fix prom_init on 32-bit OF machines

Commit e7943fbb broke ppc32 using
Open Firmware client interface due to using the wrong relocation
macro when accessing the variable "linux_banner".
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 9e41d959
...@@ -2283,7 +2283,7 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4, ...@@ -2283,7 +2283,7 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
*/ */
prom_init_stdout(); prom_init_stdout();
prom_printf("Preparing to boot %s", PTRRELOC((char *)linux_banner)); prom_printf("Preparing to boot %s", RELOC(linux_banner));
/* /*
* Get default machine type. At this point, we do not differentiate * Get default machine type. At this point, we do not differentiate
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册