mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
parisc: Make THREAD_SIZE available to assembly files and linker scripts.
Signed-off-by: Tim Abbott <tabbott@ksplice.com> Acked-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
parent
fe579c69c6
commit
f32ed3954c
1 changed files with 5 additions and 5 deletions
|
@ -32,6 +32,11 @@ struct thread_info {
|
||||||
#define init_thread_info (init_thread_union.thread_info)
|
#define init_thread_info (init_thread_union.thread_info)
|
||||||
#define init_stack (init_thread_union.stack)
|
#define init_stack (init_thread_union.stack)
|
||||||
|
|
||||||
|
/* how to get the thread information struct from C */
|
||||||
|
#define current_thread_info() ((struct thread_info *)mfctl(30))
|
||||||
|
|
||||||
|
#endif /* !__ASSEMBLY */
|
||||||
|
|
||||||
/* thread information allocation */
|
/* thread information allocation */
|
||||||
|
|
||||||
#define THREAD_SIZE_ORDER 2
|
#define THREAD_SIZE_ORDER 2
|
||||||
|
@ -40,11 +45,6 @@ struct thread_info {
|
||||||
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
||||||
#define THREAD_SHIFT (PAGE_SHIFT + THREAD_SIZE_ORDER)
|
#define THREAD_SHIFT (PAGE_SHIFT + THREAD_SIZE_ORDER)
|
||||||
|
|
||||||
/* how to get the thread information struct from C */
|
|
||||||
#define current_thread_info() ((struct thread_info *)mfctl(30))
|
|
||||||
|
|
||||||
#endif /* !__ASSEMBLY */
|
|
||||||
|
|
||||||
#define PREEMPT_ACTIVE_BIT 28
|
#define PREEMPT_ACTIVE_BIT 28
|
||||||
#define PREEMPT_ACTIVE (1 << PREEMPT_ACTIVE_BIT)
|
#define PREEMPT_ACTIVE (1 << PREEMPT_ACTIVE_BIT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue