processor.h (f9cd49033b349b8be3bb1f01b39eed837853d880) | processor.h (2319295dd8dbd076afa136bffb797ef726b605a0) |
---|---|
1/* 2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2008-2009 PetaLogix 4 * Copyright (C) 2006 Atmark Techno, Inc. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 17 unchanged lines hidden (view full) --- 26 27#define task_pt_regs(tsk) \ 28 (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1) 29 30/* Do necessary setup to start up a newly executed thread. */ 31void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); 32 33extern void ret_from_fork(void); | 1/* 2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2008-2009 PetaLogix 4 * Copyright (C) 2006 Atmark Techno, Inc. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 17 unchanged lines hidden (view full) --- 26 27#define task_pt_regs(tsk) \ 28 (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1) 29 30/* Do necessary setup to start up a newly executed thread. */ 31void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); 32 33extern void ret_from_fork(void); |
34extern void ret_from_kernel_thread(void); |
|
34 35# endif /* __ASSEMBLY__ */ 36 37# ifndef CONFIG_MMU 38/* 39 * User space process size: memory size 40 * 41 * TASK_SIZE on MMU cpu is usually 1GB. However, on no-MMU arch, both --- 31 unchanged lines hidden (view full) --- 73static inline void exit_thread(void) 74{ 75} 76 77extern unsigned long thread_saved_pc(struct task_struct *t); 78 79extern unsigned long get_wchan(struct task_struct *p); 80 | 35 36# endif /* __ASSEMBLY__ */ 37 38# ifndef CONFIG_MMU 39/* 40 * User space process size: memory size 41 * 42 * TASK_SIZE on MMU cpu is usually 1GB. However, on no-MMU arch, both --- 31 unchanged lines hidden (view full) --- 74static inline void exit_thread(void) 75{ 76} 77 78extern unsigned long thread_saved_pc(struct task_struct *t); 79 80extern unsigned long get_wchan(struct task_struct *p); 81 |
81/* 82 * create a kernel thread without removing it from tasklists 83 */ 84extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); 85 | |
86# define KSTK_EIP(tsk) (0) 87# define KSTK_ESP(tsk) (0) 88 89# else /* CONFIG_MMU */ 90 91/* 92 * This is used to define STACK_TOP, and with MMU it must be below 93 * kernel base to select the correct PGD when handling MMU exceptions. --- 32 unchanged lines hidden (view full) --- 126 .pgdir = swapper_pg_dir, \ 127} 128 129/* Free all resources held by a thread. */ 130extern inline void release_thread(struct task_struct *dead_task) 131{ 132} 133 | 82# define KSTK_EIP(tsk) (0) 83# define KSTK_ESP(tsk) (0) 84 85# else /* CONFIG_MMU */ 86 87/* 88 * This is used to define STACK_TOP, and with MMU it must be below 89 * kernel base to select the correct PGD when handling MMU exceptions. --- 32 unchanged lines hidden (view full) --- 122 .pgdir = swapper_pg_dir, \ 123} 124 125/* Free all resources held by a thread. */ 126extern inline void release_thread(struct task_struct *dead_task) 127{ 128} 129 |
134extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); 135 | |
136/* Free current thread data structures etc. */ 137static inline void exit_thread(void) 138{ 139} 140 141/* Return saved (kernel) PC of a blocked thread. */ 142# define thread_saved_pc(tsk) \ 143 ((tsk)->thread.regs ? (tsk)->thread.regs->r15 : 0) --- 36 unchanged lines hidden --- | 130/* Free current thread data structures etc. */ 131static inline void exit_thread(void) 132{ 133} 134 135/* Return saved (kernel) PC of a blocked thread. */ 136# define thread_saved_pc(tsk) \ 137 ((tsk)->thread.regs ? (tsk)->thread.regs->r15 : 0) --- 36 unchanged lines hidden --- |