Loading arch/microblaze/include/asm/processor.h +3 −10 Original line number Diff line number Diff line Loading @@ -29,6 +29,9 @@ extern const struct seq_operations cpuinfo_op; #define task_pt_regs(tsk) \ (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1) /* Do necessary setup to start up a newly executed thread. */ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); /* * User space process size: memory size * Loading Loading @@ -58,16 +61,6 @@ struct task_struct; struct thread_struct { }; # define INIT_THREAD { } /* Do necessary setup to start up a newly executed thread. */ static inline void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) { regs->pc = pc; regs->r1 = usp; regs->pt_mode = 0; } /* Free all resources held by a thread. */ static inline void release_thread(struct task_struct *dead_task) { Loading arch/microblaze/kernel/process.c +9 −0 Original line number Diff line number Diff line Loading @@ -182,3 +182,12 @@ unsigned long get_wchan(struct task_struct *p) /* TBD (used by procfs) */ return 0; } /* Set up a thread for executing a new program */ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) { set_fs(USER_DS); regs->pc = pc; regs->r1 = usp; regs->pt_mode = 0; } Loading
arch/microblaze/include/asm/processor.h +3 −10 Original line number Diff line number Diff line Loading @@ -29,6 +29,9 @@ extern const struct seq_operations cpuinfo_op; #define task_pt_regs(tsk) \ (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1) /* Do necessary setup to start up a newly executed thread. */ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); /* * User space process size: memory size * Loading Loading @@ -58,16 +61,6 @@ struct task_struct; struct thread_struct { }; # define INIT_THREAD { } /* Do necessary setup to start up a newly executed thread. */ static inline void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) { regs->pc = pc; regs->r1 = usp; regs->pt_mode = 0; } /* Free all resources held by a thread. */ static inline void release_thread(struct task_struct *dead_task) { Loading
arch/microblaze/kernel/process.c +9 −0 Original line number Diff line number Diff line Loading @@ -182,3 +182,12 @@ unsigned long get_wchan(struct task_struct *p) /* TBD (used by procfs) */ return 0; } /* Set up a thread for executing a new program */ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) { set_fs(USER_DS); regs->pc = pc; regs->r1 = usp; regs->pt_mode = 0; }