OSDN Git Service

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / mn10300 / include / asm / processor.h
index 247928c..8b80b19 100644 (file)
@@ -119,20 +119,13 @@ struct thread_struct {
 
 /*
  * do necessary setup to start up a newly executed thread
- * - need to discard the frame stacked by the kernel thread invoking the execve
- *   syscall (see RESTORE_ALL macro)
  */
 static inline void start_thread(struct pt_regs *regs,
                                unsigned long new_pc, unsigned long new_sp)
 {
-       struct thread_info *ti = current_thread_info();
-       struct pt_regs *frame0;
-
-       frame0 = thread_info_to_uregs(ti);
-       frame0->epsw = EPSW_nSL | EPSW_IE | EPSW_IM;
-       frame0->pc = new_pc;
-       frame0->sp = new_sp;
-       ti->frame = frame0;
+       regs->epsw = EPSW_nSL | EPSW_IE | EPSW_IM;
+       regs->pc = new_pc;
+       regs->sp = new_sp;
 }
 
 
@@ -140,11 +133,6 @@ static inline void start_thread(struct pt_regs *regs,
 extern void release_thread(struct task_struct *);
 
 /*
- * create a kernel thread without removing it from tasklists
- */
-extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
-
-/*
  * Return saved PC of a blocked thread.
  */
 extern unsigned long thread_saved_pc(struct task_struct *tsk);