|
@@ -112,8 +112,8 @@ static inline struct thread_info *current_thread_info(void) __attribute_const__;
|
|
|
|
|
|
|
|
static inline struct thread_info *current_thread_info(void)
|
|
static inline struct thread_info *current_thread_info(void)
|
|
|
{
|
|
{
|
|
|
- register unsigned long sp asm ("sp");
|
|
|
|
|
- return (struct thread_info *)(sp & ~(THREAD_SIZE - 1));
|
|
|
|
|
|
|
+ return (struct thread_info *)
|
|
|
|
|
+ (current_stack_pointer & ~(THREAD_SIZE - 1));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#define thread_saved_pc(tsk) \
|
|
#define thread_saved_pc(tsk) \
|