diff options
author | David Howells <dhowells@redhat.com> | 2018-01-08 10:39:35 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-01-08 10:45:21 +0000 |
commit | 7066d746d1aa63c2e5d656eeb5c4b0bfad334c7a (patch) | |
tree | 490f9301fe3bbeb7dace5aca359201a88a42f804 /arch/cris/include/asm/thread_info.h | |
parent | 30a7acd573899fd8b8ac39236eff6468b195ac7d (diff) | |
download | op-kernel-dev-7066d746d1aa63c2e5d656eeb5c4b0bfad334c7a.zip op-kernel-dev-7066d746d1aa63c2e5d656eeb5c4b0bfad334c7a.tar.gz |
cris: Make THREAD_SIZE available to vmlinux.lds
Make THREAD_SIZE available to vmlinux.lds on cris by moving it to
asm/thread_info.h and including that from the linker script.
This allows init_stack to be allocated in the linker script in a subsequent
patch.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
cc: Mikael Starvik <starvik@axis.com>
cc: Jesper Nilsson <jesper.nilsson@axis.com>
cc: linux-cris-kernel@axis.com
Diffstat (limited to 'arch/cris/include/asm/thread_info.h')
-rw-r--r-- | arch/cris/include/asm/thread_info.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/cris/include/asm/thread_info.h b/arch/cris/include/asm/thread_info.h index 472830c..108f770 100644 --- a/arch/cris/include/asm/thread_info.h +++ b/arch/cris/include/asm/thread_info.h @@ -20,6 +20,13 @@ #endif +/* THREAD_SIZE is the size of the thread_info/kernel_stack combo. + * normally, the stack is found by doing something like p + THREAD_SIZE + * in CRIS, a page is 8192 bytes, which seems like a sane size + */ +#define THREAD_SIZE PAGE_SIZE +#define THREAD_SIZE_ORDER (0) + /* * low level task data that entry.S needs immediate access to * - this struct should fit entirely inside of one cache line |