Changeset aa85487 in mainline for kernel/generic/include
- Timestamp:
- 2010-03-07T15:11:56Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aadf01e
- Parents:
- 2e99277 (diff), 137691a (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:
-
- 15 edited
-
atomic.h (modified) (2 diffs)
-
bitops.h (modified) (1 diff)
-
console/chardev.h (modified) (3 diffs)
-
console/kconsole.h (modified) (1 diff)
-
cpu.h (modified) (1 diff)
-
errno.h (modified) (1 diff)
-
interrupt.h (modified) (1 diff)
-
lib/elf.h (modified) (1 diff)
-
mm/slab.h (modified) (2 diffs)
-
panic.h (modified) (1 diff)
-
proc/task.h (modified) (1 diff)
-
proc/thread.h (modified) (2 diffs)
-
stacktrace.h (modified) (1 diff)
-
symtab.h (modified) (1 diff)
-
synch/spinlock.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
r2e99277 raa85487 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_ATOMIC_H_ 37 37 38 #include <arch/types.h> 39 38 40 typedef struct atomic { 39 volatile longcount;41 volatile atomic_count_t count; 40 42 } atomic_t; 41 43 42 44 #include <arch/atomic.h> 43 45 44 static inline void atomic_set(atomic_t *val, longi)46 static inline void atomic_set(atomic_t *val, atomic_count_t i) 45 47 { 46 48 val->count = i; 47 49 } 48 50 49 static inline longatomic_get(atomic_t *val)51 static inline atomic_count_t atomic_get(atomic_t *val) 50 52 { 51 53 return val->count; -
kernel/generic/include/bitops.h
r2e99277 raa85487 65 65 } 66 66 67 if (arg >> 1) { 68 arg >>= 1; 67 if (arg >> 1) 69 68 n += 1; 70 }71 69 72 70 return n; -
kernel/generic/include/console/chardev.h
r2e99277 raa85487 53 53 /** Character input device. */ 54 54 typedef struct indev { 55 c har *name;55 const char *name; 56 56 waitq_t wq; 57 57 … … 81 81 /** Character output device. */ 82 82 typedef struct outdev { 83 c har *name;83 const char *name; 84 84 85 85 /** Protects everything below. */ … … 95 95 } outdev_t; 96 96 97 extern void indev_initialize(c har *name, indev_t *indev,97 extern void indev_initialize(const char *name, indev_t *indev, 98 98 indev_operations_t *op); 99 99 extern void indev_push_character(indev_t *indev, wchar_t ch); 100 100 extern wchar_t indev_pop_character(indev_t *indev); 101 101 102 extern void outdev_initialize(c har *name, outdev_t *outdev,102 extern void outdev_initialize(const char *name, outdev_t *outdev, 103 103 outdev_operations_t *op); 104 104 -
kernel/generic/include/console/kconsole.h
r2e99277 raa85487 94 94 extern void kconsole_notify_init(void); 95 95 extern bool kconsole_check_poll(void); 96 extern void kconsole(c har *prompt,char *msg, bool kcon);96 extern void kconsole(const char *prompt, const char *msg, bool kcon); 97 97 extern void kconsole_thread(void *data); 98 98 -
kernel/generic/include/cpu.h
r2e99277 raa85487 48 48 * There is one structure like this for every processor. 49 49 */ 50 typedef struct {50 typedef struct cpu { 51 51 SPINLOCK_DECLARE(lock); 52 52 -
kernel/generic/include/errno.h
r2e99277 raa85487 57 57 #define EADDRNOTAVAIL -12 /* Address not available. */ 58 58 #define ETIMEOUT -13 /* Timeout expired */ 59 //MH60 #ifndef EINVAL61 59 #define EINVAL -14 /* Invalid value */ 62 #endif63 #ifndef EBUSY64 60 #define EBUSY -15 /* Resource is busy */ 65 #endif66 61 #define EOVERFLOW -16 /* The result does not fit its size. */ 67 62 #define EINTR -17 /* Operation was interrupted. */ -
kernel/generic/include/interrupt.h
r2e99277 raa85487 46 46 typedef void (* iroutine)(int n, istate_t *istate); 47 47 48 extern void fault_if_from_uspace(istate_t *istate, c har *fmt, ...);48 extern void fault_if_from_uspace(istate_t *istate, const char *fmt, ...); 49 49 extern iroutine exc_register(int n, const char *name, iroutine f); 50 50 extern void exc_dispatch(int n, istate_t *t); -
kernel/generic/include/lib/elf.h
r2e99277 raa85487 338 338 #endif 339 339 340 extern c har *elf_error(unsigned int rc);340 extern const char *elf_error(unsigned int rc); 341 341 342 342 /* Interpreter string used to recognize the program loader */ -
kernel/generic/include/mm/slab.h
r2e99277 raa85487 86 86 87 87 typedef struct { 88 c har *name;88 const char *name; 89 89 90 90 link_t link; … … 123 123 } slab_cache_t; 124 124 125 extern slab_cache_t *slab_cache_create(c har *, size_t, size_t,125 extern slab_cache_t *slab_cache_create(const char *, size_t, size_t, 126 126 int (*)(void *, int), int (*)(void *), int); 127 127 extern void slab_cache_destroy(slab_cache_t *); -
kernel/generic/include/panic.h
r2e99277 raa85487 60 60 extern bool silent; 61 61 62 extern void panic_printf(c har *fmt, ...) __attribute__((noreturn));62 extern void panic_printf(const char *fmt, ...) __attribute__((noreturn)); 63 63 64 64 #endif -
kernel/generic/include/proc/task.h
r2e99277 raa85487 130 130 extern void task_init(void); 131 131 extern void task_done(void); 132 extern task_t *task_create(as_t *as, c har *name);132 extern task_t *task_create(as_t *as, const char *name); 133 133 extern void task_destroy(task_t *t); 134 134 extern task_t *task_find_by_id(task_id_t id); -
kernel/generic/include/proc/thread.h
r2e99277 raa85487 52 52 #define THREAD_NAME_BUFLEN 20 53 53 54 extern c har *thread_states[];54 extern const char *thread_states[]; 55 55 56 56 /* Thread flags */ … … 225 225 226 226 extern void thread_init(void); 227 extern thread_t *thread_create(void (*)(void *), void *, task_t *, int, char *,228 bool);227 extern thread_t *thread_create(void (*)(void *), void *, task_t *, int, 228 const char *, bool); 229 229 extern void thread_attach(thread_t *, task_t *); 230 230 extern void thread_ready(thread_t *); -
kernel/generic/include/stacktrace.h
r2e99277 raa85487 46 46 bool (* frame_pointer_prev)(uintptr_t, uintptr_t *); 47 47 bool (* return_address_get)(uintptr_t, uintptr_t *); 48 bool (* symbol_resolve)(uintptr_t, c har **, uintptr_t *);48 bool (* symbol_resolve)(uintptr_t, const char **, uintptr_t *); 49 49 } stack_trace_ops_t; 50 50 -
kernel/generic/include/symtab.h
r2e99277 raa85487 45 45 }; 46 46 47 extern int symtab_name_lookup(uintptr_t, c har **, uintptr_t *);48 extern c har *symtab_fmt_name_lookup(uintptr_t);47 extern int symtab_name_lookup(uintptr_t, const char **, uintptr_t *); 48 extern const char *symtab_fmt_name_lookup(uintptr_t); 49 49 extern int symtab_addr_lookup(const char *, uintptr_t *); 50 50 extern void symtab_print_search(const char *); -
kernel/generic/include/synch/spinlock.h
r2e99277 raa85487 48 48 49 49 #ifdef CONFIG_DEBUG_SPINLOCK 50 c har *name;50 const char *name; 51 51 #endif 52 52 } spinlock_t; … … 101 101 SPINLOCK_STATIC_INITIALIZE_NAME(lock_name, #lock_name) 102 102 103 extern void spinlock_initialize(spinlock_t *lock, c har *name);103 extern void spinlock_initialize(spinlock_t *lock, const char *name); 104 104 extern int spinlock_trylock(spinlock_t *lock); 105 105 extern void spinlock_lock_debug(spinlock_t *lock);
Note:
See TracChangeset
for help on using the changeset viewer.
