Make THREAD_SIZE available to vmlinux.lds on openrisc by including
asm/thread_info.h the linker script.

This allows init_stack to be allocated in the linker script in a subsequent
patch.

Reported-by: Guenter Roeck <li...@roeck-us.net>
Signed-off-by: David Howells <dhowe...@redhat.com>
Tested-by: Guenter Roeck <li...@roeck-us.net>
Acked-by: Stafford Horne <sho...@gmail.com>
cc: Jonas Bonn <jo...@southpole.se>
cc: Stefan Kristiansson <stefan.kristians...@saunalahti.fi>
cc: openr...@lists.librecores.org
---

 arch/openrisc/kernel/vmlinux.lds.S |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/openrisc/kernel/vmlinux.lds.S 
b/arch/openrisc/kernel/vmlinux.lds.S
index 00ddb7804be4..953bdcd54efe 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -28,6 +28,7 @@
 
 #include <asm/page.h>
 #include <asm/cache.h>
+#include <asm/thread_info.h>
 #include <asm-generic/vmlinux.lds.h>
 
 #ifdef __OR1K__

Reply via email to