summaryrefslogtreecommitdiffstats
path: root/arch/csky/mm
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-09 17:31:53 +0800
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 23:16:00 +0800
commit17a68777bc883c8044c8b2d40aa112ff4e8a4fb1 (patch)
treeb8379a00026d6bd33bf6046b6296ebbee66e4e55 /arch/csky/mm
parent8f4f1639a19db231e4579612dbc6d147e8d07ffd (diff)
downloadlinux-17a68777bc883c8044c8b2d40aa112ff4e8a4fb1.tar.gz
linux-17a68777bc883c8044c8b2d40aa112ff4e8a4fb1.tar.bz2
linux-17a68777bc883c8044c8b2d40aa112ff4e8a4fb1.zip
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/mm')
-rw-r--r--arch/csky/mm/fault.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/csky/mm/fault.c b/arch/csky/mm/fault.c
index 6a946614cc47..d6f4b66b93e2 100644
--- a/arch/csky/mm/fault.c
+++ b/arch/csky/mm/fault.c
@@ -172,8 +172,6 @@ bad_area:
bad_area_nosemaphore:
/* User mode accesses just cause a SIGSEGV */
if (user_mode(regs)) {
- tsk->thread.address = address;
- tsk->thread.error_code = write;
force_sig_fault(SIGSEGV, si_code, (void __user *)address, current);
return;
}
@@ -207,6 +205,5 @@ do_sigbus:
if (!user_mode(regs))
goto no_context;
- tsk->thread.address = address;
force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address, current);
}