Loading arch/csky/include/asm/processor.h +0 −12 Original line number Diff line number Diff line Loading @@ -17,14 +17,7 @@ #endif struct cpuinfo_csky { unsigned long udelay_val; unsigned long asid_cache; /* * Capability and feature descriptor structure for CSKY CPU */ unsigned long options; unsigned int processor_id[4]; unsigned int fpu_id; } __aligned(SMP_CACHE_BYTES); extern struct cpuinfo_csky cpu_data[]; Loading @@ -50,11 +43,6 @@ extern struct cpuinfo_csky cpu_data[]; struct thread_struct { unsigned long ksp; /* kernel stack pointer */ unsigned long sr; /* saved status register */ unsigned long esp0; /* points to SR of stack frame */ /* Other stuff associated with the thread. */ unsigned long address; /* Last user fault */ unsigned long error_code; /* FPU regs */ struct user_fp __aligned(16) user_fp; Loading arch/csky/kernel/asm-offsets.c +0 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ int main(void) /* offsets into the thread struct */ DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); DEFINE(THREAD_SR, offsetof(struct thread_struct, sr)); DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0)); DEFINE(THREAD_FESR, offsetof(struct thread_struct, user_fp.fesr)); DEFINE(THREAD_FCR, offsetof(struct thread_struct, user_fp.fcr)); DEFINE(THREAD_FPREG, offsetof(struct thread_struct, user_fp.vr)); Loading arch/csky/kernel/entry.S +0 −12 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 */ Loading arch/csky/kernel/ptrace.c +0 −4 Original line number Diff line number Diff line Loading @@ -50,15 +50,11 @@ static void singlestep_enable(struct task_struct *tsk) */ void user_enable_single_step(struct task_struct *child) { if (child->thread.esp0 == 0) return; singlestep_enable(child); } void user_disable_single_step(struct task_struct *child) { if (child->thread.esp0 == 0) return; singlestep_disable(child); } Loading arch/csky/kernel/signal.c +0 −2 Original line number Diff line number Diff line Loading @@ -238,8 +238,6 @@ static void do_signal(struct pt_regs *regs, int syscall) if (!user_mode(regs)) return; current->thread.esp0 = (unsigned long)regs; /* * If we were from a system call, check for system call restarting... */ Loading Loading
arch/csky/include/asm/processor.h +0 −12 Original line number Diff line number Diff line Loading @@ -17,14 +17,7 @@ #endif struct cpuinfo_csky { unsigned long udelay_val; unsigned long asid_cache; /* * Capability and feature descriptor structure for CSKY CPU */ unsigned long options; unsigned int processor_id[4]; unsigned int fpu_id; } __aligned(SMP_CACHE_BYTES); extern struct cpuinfo_csky cpu_data[]; Loading @@ -50,11 +43,6 @@ extern struct cpuinfo_csky cpu_data[]; struct thread_struct { unsigned long ksp; /* kernel stack pointer */ unsigned long sr; /* saved status register */ unsigned long esp0; /* points to SR of stack frame */ /* Other stuff associated with the thread. */ unsigned long address; /* Last user fault */ unsigned long error_code; /* FPU regs */ struct user_fp __aligned(16) user_fp; Loading
arch/csky/kernel/asm-offsets.c +0 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ int main(void) /* offsets into the thread struct */ DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); DEFINE(THREAD_SR, offsetof(struct thread_struct, sr)); DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0)); DEFINE(THREAD_FESR, offsetof(struct thread_struct, user_fp.fesr)); DEFINE(THREAD_FCR, offsetof(struct thread_struct, user_fp.fcr)); DEFINE(THREAD_FPREG, offsetof(struct thread_struct, user_fp.vr)); Loading
arch/csky/kernel/entry.S +0 −12 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 */ Loading
arch/csky/kernel/ptrace.c +0 −4 Original line number Diff line number Diff line Loading @@ -50,15 +50,11 @@ static void singlestep_enable(struct task_struct *tsk) */ void user_enable_single_step(struct task_struct *child) { if (child->thread.esp0 == 0) return; singlestep_enable(child); } void user_disable_single_step(struct task_struct *child) { if (child->thread.esp0 == 0) return; singlestep_disable(child); } Loading
arch/csky/kernel/signal.c +0 −2 Original line number Diff line number Diff line Loading @@ -238,8 +238,6 @@ static void do_signal(struct pt_regs *regs, int syscall) if (!user_mode(regs)) return; current->thread.esp0 = (unsigned long)regs; /* * If we were from a system call, check for system call restarting... */ Loading