File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ extern struct cpuinfo_csky cpu_data[];
41
41
#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
42
42
43
43
struct thread_struct {
44
- unsigned long ksp ; /* kernel stack pointer */
44
+ unsigned long sp ; /* kernel stack pointer */
45
45
unsigned long trap_no ; /* saved status register */
46
46
47
47
/* FPU regs */
48
48
struct user_fp __aligned (16 ) user_fp ;
49
49
};
50
50
51
51
#define INIT_THREAD { \
52
- .ksp = sizeof(init_stack) + (unsigned long) &init_stack, \
52
+ .sp = sizeof(init_stack) + (unsigned long) &init_stack, \
53
53
}
54
54
55
55
/*
Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ struct thread_info {
38
38
#define THREAD_SIZE_ORDER (THREAD_SHIFT - PAGE_SHIFT)
39
39
40
40
#define thread_saved_fp (tsk ) \
41
- ((unsigned long)(((struct switch_stack *)(tsk->thread.ksp ))->r8))
41
+ ((unsigned long)(((struct switch_stack *)(tsk->thread.sp ))->r8))
42
42
43
43
#define thread_saved_sp (tsk ) \
44
- ((unsigned long)(tsk->thread.ksp ))
44
+ ((unsigned long)(tsk->thread.sp ))
45
45
46
46
#define thread_saved_lr (tsk ) \
47
- ((unsigned long)(((struct switch_stack *)(tsk->thread.ksp ))->r15))
47
+ ((unsigned long)(((struct switch_stack *)(tsk->thread.sp ))->r15))
48
48
49
49
static inline struct thread_info * current_thread_info (void )
50
50
{
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ int main(void)
18
18
DEFINE (TASK_ACTIVE_MM , offsetof(struct task_struct , active_mm ));
19
19
20
20
/* offsets into the thread struct */
21
- DEFINE (THREAD_KSP , offsetof(struct thread_struct , ksp ));
21
+ DEFINE (THREAD_KSP , offsetof(struct thread_struct , sp ));
22
22
DEFINE (THREAD_FESR , offsetof(struct thread_struct , user_fp .fesr ));
23
23
DEFINE (THREAD_FCR , offsetof(struct thread_struct , user_fp .fcr ));
24
24
DEFINE (THREAD_FPREG , offsetof(struct thread_struct , user_fp .vr ));
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void flush_thread(void){}
35
35
*/
36
36
unsigned long thread_saved_pc (struct task_struct * tsk )
37
37
{
38
- struct switch_stack * sw = (struct switch_stack * )tsk -> thread .ksp ;
38
+ struct switch_stack * sw = (struct switch_stack * )tsk -> thread .sp ;
39
39
40
40
return sw -> r15 ;
41
41
}
@@ -56,8 +56,8 @@ int copy_thread_tls(unsigned long clone_flags,
56
56
childstack = ((struct switch_stack * ) childregs ) - 1 ;
57
57
memset (childstack , 0 , sizeof (struct switch_stack ));
58
58
59
- /* setup ksp for switch_to !!! */
60
- p -> thread .ksp = (unsigned long )childstack ;
59
+ /* setup thread.sp for switch_to !!! */
60
+ p -> thread .sp = (unsigned long )childstack ;
61
61
62
62
if (unlikely (p -> flags & PF_KTHREAD )) {
63
63
memset (childregs , 0 , sizeof (struct pt_regs ));
You can’t perform that action at this time.
0 commit comments