Skip to contentSkip to conversation

openrisc: Make THREAD_SIZE available to vmlinux.lds

RFC PATCH New David Howells 3 participants 4 messages Jan 8, 2018 Openrisc architecture

lore
Share & tools
lore
#0 lore raw

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.

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
index 00ddb7804be4..953bdcd54efe 100644
@@ -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__
maintainer
#1 lore raw

RFC PATCH 1/1 openrisc: Make THREAD_SIZE available to vmlinux.lds

Quoted 5 lines · David Howells

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.

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
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
index 00ddb7804be4..953bdcd54efe 100644
@@ -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__
#2 lore raw

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

#3 lore raw

RFC PATCH 1/1 openrisc: Make THREAD_SIZE available to vmlinux.lds

In reply to David Howells
Quoted 8 lines · David Howells

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.

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
index 00ddb7804be4..953bdcd54efe 100644
@@ -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__