diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-05-14 16:04:31 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-05-15 00:16:18 +0800 |
commit | 67002814cf3b7265900003f6a49657847eeeb57d (patch) | |
tree | 47dd829a263cd5964ed533c4d2587ac50ead0d7d /arch/csky/include/asm/processor.h | |
parent | 9e2ca15322acc5a0a697305e02af9ce5ac881f66 (diff) | |
download | lwn-67002814cf3b7265900003f6a49657847eeeb57d.tar.gz lwn-67002814cf3b7265900003f6a49657847eeeb57d.zip |
csky: Fixup gdbmacros.txt with name sp in thread_struct
The gdbmacros.txt use sp in thread_struct, but csky use ksp. This
cause bttnobp fail to excute.
TODO:
- Still couldn't display the contents of stack.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/include/asm/processor.h')
-rw-r--r-- | arch/csky/include/asm/processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/csky/include/asm/processor.h b/arch/csky/include/asm/processor.h index 79eaaaed3d23..24442d8e86f9 100644 --- a/arch/csky/include/asm/processor.h +++ b/arch/csky/include/asm/processor.h @@ -41,7 +41,7 @@ extern struct cpuinfo_csky cpu_data[]; #define TASK_UNMAPPED_BASE (TASK_SIZE / 3) struct thread_struct { - unsigned long ksp; /* kernel stack pointer */ + unsigned long sp; /* kernel stack pointer */ unsigned long trap_no; /* saved status register */ /* FPU regs */ @@ -49,7 +49,7 @@ struct thread_struct { }; #define INIT_THREAD { \ - .ksp = sizeof(init_stack) + (unsigned long) &init_stack, \ + .sp = sizeof(init_stack) + (unsigned long) &init_stack, \ } /* |