openrisc: Make THREAD_SIZE available to vmlinux.lds
RFC PATCH 1/1 openrisc: Make THREAD_SIZE available to vmlinux.lds
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.
---
arch/openrisc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)
arch/openrisc/kernel/vmlinux.lds.S +1 -0
@@ -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__
Stafford Horne
maintainerRFC PATCH 1/1 openrisc: Make THREAD_SIZE available to vmlinux.lds
Quoted 5 lines · David Howells
Make
THREAD_SIZEavailable tovmlinux.ldson openrisc by includingasm/thread_info.hthe linker script.This allows
init_stackto be allocated in the linker script in a subsequent patch.
This looks fine, I see your patch "7e7a20a2058dc8a5106593692cfb0876de028892" (Construct init thread stack in the linker script rather than by union) already has some updates for openrisc, which are good cleanups too.
Since the two patches depend on eachother do you want to put this in the queue with your other patches?
Quoted 25 lines
Reported-by Guenter Roeck <[email protected]>Signed-off-by David Howells <[email protected]>cc Guenter Roeck <[email protected]>cc Jonas Bonn <[email protected]>cc Stefan Kristiansson <[email protected]>cc Stafford Horne <[email protected]>cc openrisc at lists.librecores.org---
arch/openrisc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)arch/openrisc/kernel/vmlinux.lds.S +1
-0@@ -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__
RFC PATCH 1/1 openrisc: Make THREAD_SIZE available to vmlinux.lds
Quoted 2 lines · Stafford Horne
Since the two patches depend on eachother do you want to put this in the queue with your other patches?
That's my intention, yes.
David
RFC PATCH 1/1 openrisc: Make THREAD_SIZE available to vmlinux.lds
In reply to David HowellsQuoted 8 lines · David Howells
Make
THREAD_SIZEavailable tovmlinux.ldson openrisc by includingasm/thread_info.hthe linker script.This allows
init_stackto be allocated in the linker script in a subsequent patch.Reported-by Guenter Roeck <[email protected]>Signed-off-by David Howells <[email protected]>
Quoted 23 lines
cc Guenter Roeck <[email protected]>cc Jonas Bonn <[email protected]>cc Stefan Kristiansson <[email protected]>cc Stafford Horne <[email protected]>cc openrisc at lists.librecores.org---
arch/openrisc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)arch/openrisc/kernel/vmlinux.lds.S +1
-0@@ -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__