Changeset 8013637 in mainline for kernel/generic/include
- Timestamp:
- 2012-07-20T13:51:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8fccd42
- Parents:
- c5bff3c (diff), 7030bc9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic/include
- Files:
-
- 2 added
- 8 edited
-
console/prompt.h (added)
-
debug.h (modified) (1 diff)
-
ipc/ipc.h (modified) (1 diff)
-
ipc/ipcrsc.h (modified) (1 diff)
-
lib/ra.h (modified) (1 diff)
-
mm/slab.h (modified) (2 diffs)
-
proc/program.h (modified) (1 diff)
-
proc/thread.h (modified) (4 diffs)
-
symtab.h (modified) (1 diff)
-
symtab_lookup.h (added)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
rc5bff3c r8013637 37 37 38 38 #include <panic.h> 39 #include <symtab .h>39 #include <symtab_lookup.h> 40 40 41 41 #define CALLER ((uintptr_t) __builtin_return_address(0)) -
kernel/generic/include/ipc/ipc.h
rc5bff3c r8013637 148 148 extern int ipc_call(phone_t *, call_t *); 149 149 extern int ipc_call_sync(phone_t *, call_t *); 150 extern call_t * ipc_wait_for_call(answerbox_t *, uint32_t, unsigned int);150 extern call_t *ipc_wait_for_call(answerbox_t *, uint32_t, unsigned int); 151 151 extern int ipc_forward(call_t *, phone_t *, answerbox_t *, unsigned int); 152 152 extern void ipc_answer(answerbox_t *, call_t *); -
kernel/generic/include/ipc/ipcrsc.h
rc5bff3c r8013637 39 39 #include <ipc/ipc.h> 40 40 41 extern call_t * get_call(sysarg_t callid);42 extern int phone_alloc(task_t * t);43 extern void phone_connect(int phoneid, answerbox_t *box);44 extern void phone_dealloc(int phoneid);41 extern call_t *get_call(sysarg_t); 42 extern int phone_alloc(task_t *); 43 extern void phone_connect(int, answerbox_t *); 44 extern void phone_dealloc(int); 45 45 46 46 #endif -
kernel/generic/include/lib/ra.h
rc5bff3c r8013637 42 42 43 43 typedef struct { 44 SPINLOCK_DECLARE(lock);44 IRQ_SPINLOCK_DECLARE(lock); 45 45 list_t spans; /**< List of arena's spans. */ 46 46 } ra_arena_t; -
kernel/generic/include/mm/slab.h
rc5bff3c r8013637 81 81 slab_magazine_t *current; 82 82 slab_magazine_t *last; 83 SPINLOCK_DECLARE(lock);83 IRQ_SPINLOCK_DECLARE(lock); 84 84 } slab_mag_cache_t; 85 85 … … 113 113 list_t full_slabs; /**< List of full slabs */ 114 114 list_t partial_slabs; /**< List of partial slabs */ 115 SPINLOCK_DECLARE(slablock);115 IRQ_SPINLOCK_DECLARE(slablock); 116 116 /* Magazines */ 117 117 list_t magazines; /**< List o full magazines */ 118 SPINLOCK_DECLARE(maglock);118 IRQ_SPINLOCK_DECLARE(maglock); 119 119 120 120 /** CPU cache */ -
kernel/generic/include/proc/program.h
rc5bff3c r8013637 50 50 struct task *task; /**< Program task */ 51 51 struct thread *main_thread; /**< Program main thread */ 52 unsigned int loader_status; /**< Binary loader error status */ 52 53 } program_t; 53 54 -
kernel/generic/include/proc/thread.h
rc5bff3c r8013637 54 54 55 55 /* Thread flags */ 56 57 /** Thread cannot be migrated to another CPU. 58 * 59 * When using this flag, the caller must set cpu in the thread_t 60 * structure manually before calling thread_ready (even on uniprocessor). 61 * 62 */ 63 #define THREAD_FLAG_WIRED (1 << 0) 64 65 /** Thread was migrated to another CPU and has not run yet. */ 66 #define THREAD_FLAG_STOLEN (1 << 1) 67 68 /** Thread executes in userspace. */ 69 #define THREAD_FLAG_USPACE (1 << 2) 70 71 /** Thread will be attached by the caller. */ 72 #define THREAD_FLAG_NOATTACH (1 << 3) 56 typedef enum { 57 THREAD_FLAG_NONE = 0, 58 /** Thread executes in user space. */ 59 THREAD_FLAG_USPACE = (1 << 0), 60 /** Thread will be attached by the caller. */ 61 THREAD_FLAG_NOATTACH = (1 << 1), 62 /** Thread accounting doesn't affect accumulated task accounting. */ 63 THREAD_FLAG_UNCOUNTED = (1 << 2) 64 } thread_flags_t; 73 65 74 66 /** Thread structure. There is one per thread. */ … … 147 139 148 140 fpu_context_t *saved_fpu_context; 149 intfpu_context_exists;141 bool fpu_context_exists; 150 142 151 143 /* … … 154 146 * thread. This disables migration. 155 147 */ 156 intfpu_context_engaged;148 bool fpu_context_engaged; 157 149 158 150 /* The thread will not be migrated if nomigrate is non-zero. */ 159 int nomigrate;160 161 /** Thread 'sstate. */151 unsigned int nomigrate; 152 153 /** Thread state. */ 162 154 state_t state; 163 /** Thread's flags. */ 164 unsigned int flags; 165 166 /** Thread's CPU. */ 155 156 /** Thread CPU. */ 167 157 cpu_t *cpu; 168 158 /** Containing task. */ 169 159 task_t *task; 160 /** Thread is wired to CPU. */ 161 bool wired; 162 /** Thread was migrated to another CPU and has not run yet. */ 163 bool stolen; 164 /** Thread is executed in user space. */ 165 bool uspace; 170 166 171 167 /** Ticks before preemption. */ … … 216 212 extern void thread_init(void); 217 213 extern thread_t *thread_create(void (*)(void *), void *, task_t *, 218 unsigned int, const char *, bool); 214 thread_flags_t, const char *); 215 extern void thread_wire(thread_t *, cpu_t *); 219 216 extern void thread_attach(thread_t *, task_t *); 220 217 extern void thread_ready(thread_t *); -
kernel/generic/include/symtab.h
rc5bff3c r8013637 36 36 #define KERN_SYMTAB_H_ 37 37 38 #include <typedefs.h> 38 #include <symtab_lookup.h> 39 #include <console/chardev.h> 39 40 40 #define MAX_SYMBOL_NAME 6441 42 struct symtab_entry {43 uint64_t address_le;44 char symbol_name[MAX_SYMBOL_NAME];45 };46 47 extern int symtab_name_lookup(uintptr_t, const char **, uintptr_t *);48 extern const char *symtab_fmt_name_lookup(uintptr_t);49 extern int symtab_addr_lookup(const char *, uintptr_t *);50 41 extern void symtab_print_search(const char *); 51 extern int symtab_compl(char *, size_t); 52 53 #ifdef CONFIG_SYMTAB 54 55 /** Symtable linked together by build process 56 * 57 */ 58 extern struct symtab_entry symbol_table[]; 59 60 #endif /* CONFIG_SYMTAB */ 42 extern int symtab_compl(char *, size_t, indev_t *); 61 43 62 44 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
