Commit 0dab1006896ef43f55b82b83ec2316f0179f681b
Committed by
Chen Liqin
1 parent
aa296ddf32
Exists in
master
and in
4 other branches
score: Make THREAD_SIZE available to assembly files.
Signed-off-by: Tim Abbott <tabbott@ksplice.com> Acked-by: Sam Ravnborg <sam@ravnborg.org>
Showing 1 changed file with 9 additions and 6 deletions Side-by-side Diff
arch/score/include/asm/thread_info.h
... | ... | @@ -7,6 +7,15 @@ |
7 | 7 | #define KU_USER 0x08 |
8 | 8 | #define KU_KERN 0x00 |
9 | 9 | |
10 | +#include <asm/page.h> | |
11 | +#include <linux/const.h> | |
12 | + | |
13 | +/* thread information allocation */ | |
14 | +#define THREAD_SIZE_ORDER (1) | |
15 | +#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | |
16 | +#define THREAD_MASK (THREAD_SIZE - _AC(1,UL)) | |
17 | +#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | |
18 | + | |
10 | 19 | #ifndef __ASSEMBLY__ |
11 | 20 | |
12 | 21 | #include <asm/processor.h> |
... | ... | @@ -61,12 +70,6 @@ |
61 | 70 | /* How to get the thread information struct from C. */ |
62 | 71 | register struct thread_info *__current_thread_info __asm__("r28"); |
63 | 72 | #define current_thread_info() __current_thread_info |
64 | - | |
65 | -/* thread information allocation */ | |
66 | -#define THREAD_SIZE_ORDER (1) | |
67 | -#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | |
68 | -#define THREAD_MASK (THREAD_SIZE - 1UL) | |
69 | -#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | |
70 | 73 | |
71 | 74 | #define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL) |
72 | 75 | #define free_thread_info(info) kfree(info) |