diff options
author | Guo Ren <ren_guo@c-sky.com> | 2018-12-09 13:18:15 +0800 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-12-31 22:57:27 +0800 |
commit | 31295a72b525721d10737260aea6918fb34607be (patch) | |
tree | e5159020076379f787ba2f8ced1414927a312d64 | |
parent | 35ff802af1c49dab21af8ef47b492ff952831d72 (diff) |
csky: remove syscall_exit_work
Remove syscall_exit_work and union all to ret_from_exception.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
-rw-r--r-- | arch/csky/kernel/entry.S | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index 79f92b8606c8..2b4a8515f7e5 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -183,18 +183,10 @@ ENTRY(csky_systemcall) #endif stw a0, (sp, LSAVE_A0) /* Save return value */ - movi a0, 1 /* leave system call */ - mov a1, sp /* sp = pt_regs pointer */ - jbsr syscall_trace - -syscall_exit_work: - ld syscallid, (sp, LSAVE_PSR) - btsti syscallid, 31 - bt 2f - - jmpi resume_userspace - -2: RESTORE_ALL + movi a0, 1 /* leave system call */ + mov a1, sp /* right now, sp --> pt_regs */ + jbsr syscall_trace + br ret_from_exception ENTRY(ret_from_kernel_thread) jbsr schedule_tail |