diff options
author | Guo Ren <ren_guo@c-sky.com> | 2018-12-09 17:31:53 +0800 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-12-31 23:16:00 +0800 |
commit | 17a68777bc883c8044c8b2d40aa112ff4e8a4fb1 (patch) | |
tree | b8379a00026d6bd33bf6046b6296ebbee66e4e55 /arch/csky/kernel/entry.S | |
parent | 8f4f1639a19db231e4579612dbc6d147e8d07ffd (diff) |
csky: remove unused members in processor.h
Cleanup struct cpuinfo_csky and struct thread_struct, remove all esp0
related code. We could get pt_regs from sp and backtrace could use fp
in switch_stack.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/kernel/entry.S')
-rw-r--r-- | arch/csky/kernel/entry.S | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index de378e479dee..5137ed9062bd 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -122,16 +122,6 @@ ENTRY(csky_systemcall) psrset ee, ie - /* Stack frame for syscall, origin call set_esp0 */ - mov r12, sp - - bmaski r11, 13 - andn r12, r11 - bgeni r11, 9 - addi r11, 32 - addu r12, r11 - st sp, (r12, 0) - lrw r11, __NR_syscalls cmphs syscallid, r11 /* Check nr of syscall */ bt ret_from_exception @@ -230,8 +220,6 @@ resume_userspace: 1: RESTORE_ALL exit_work: - mov a0, sp /* Stack address is arg[0] */ - jbsr set_esp0 /* Call C level */ btsti r8, TIF_NEED_RESCHED bt work_resched /* If thread_info->flag is empty, RESTORE_ALL */ |