summaryrefslogtreecommitdiffstats
path: root/arch/csky/include
diff options
context:
space:
mode:
authorGuo Ren2019-01-24 15:43:58 +0100
committerGuo Ren2019-02-13 02:48:14 +0100
commit0f231dcfc664aaafa75a006ee10e55f3ae0c9b3c (patch)
tree8a88759271de6d6b727dca73c92bc5df351466a6 /arch/csky/include
parentcsky: Fixup wrong pt_regs size (diff)
downloadkernel-qcow2-linux-0f231dcfc664aaafa75a006ee10e55f3ae0c9b3c.tar.gz
kernel-qcow2-linux-0f231dcfc664aaafa75a006ee10e55f3ae0c9b3c.tar.xz
kernel-qcow2-linux-0f231dcfc664aaafa75a006ee10e55f3ae0c9b3c.zip
csky: coding convention: Use task_stack_page
Use task_stack_page instead of p->stack to get stack. Follow the coding convention style. Also for init_stack, the same with other archs. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/include')
-rw-r--r--arch/csky/include/asm/processor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/csky/include/asm/processor.h b/arch/csky/include/asm/processor.h
index 8f454810514f..21e0bd5293dd 100644
--- a/arch/csky/include/asm/processor.h
+++ b/arch/csky/include/asm/processor.h
@@ -49,7 +49,7 @@ struct thread_struct {
};
#define INIT_THREAD { \
- .ksp = (unsigned long) init_thread_union.stack + THREAD_SIZE, \
+ .ksp = sizeof(init_stack) + (unsigned long) &init_stack, \
.sr = DEFAULT_PSR_VALUE, \
}
@@ -95,7 +95,7 @@ unsigned long get_wchan(struct task_struct *p);
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->usp)
#define task_pt_regs(p) \
- ((struct pt_regs *)(THREAD_SIZE + p->stack) - 1)
+ ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
#define cpu_relax() barrier()