Changeset d99c1d2 in mainline for kernel/generic/include
- Timestamp:
- 2010-03-23T14:41:06Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b1164e8
- Parents:
- 7c682dd1
- Location:
- kernel/generic/include
- Files:
-
- 52 edited
-
adt/avl.h (modified) (1 diff)
-
adt/bitmap.h (modified) (1 diff)
-
adt/btree.h (modified) (1 diff)
-
adt/hash_table.h (modified) (1 diff)
-
adt/list.h (modified) (1 diff)
-
atomic.h (modified) (1 diff)
-
byteorder.h (modified) (1 diff)
-
config.h (modified) (1 diff)
-
console/chardev.h (modified) (1 diff)
-
console/console.h (modified) (1 diff)
-
context.h (modified) (1 diff)
-
ddi/ddi.h (modified) (1 diff)
-
ddi/device.h (modified) (1 diff)
-
ddi/irq.h (modified) (1 diff)
-
func.h (modified) (2 diffs)
-
interrupt.h (modified) (1 diff)
-
ipc/event.h (modified) (1 diff)
-
ipc/irq.h (modified) (1 diff)
-
ipc/sysipc.h (modified) (1 diff)
-
lib/elf.h (modified) (1 diff)
-
lib/rd.h (modified) (1 diff)
-
macros.h (modified) (1 diff)
-
main/main.h (modified) (1 diff)
-
main/uinit.h (modified) (1 diff)
-
memstr.h (modified) (2 diffs)
-
mm/as.h (modified) (2 diffs)
-
mm/buddy.h (modified) (1 diff)
-
mm/frame.h (modified) (1 diff)
-
mm/page.h (modified) (1 diff)
-
mm/tlb.h (modified) (1 diff)
-
print.h (modified) (1 diff)
-
proc/program.h (modified) (1 diff)
-
proc/scheduler.h (modified) (2 diffs)
-
security/cap.h (modified) (1 diff)
-
sort.h (modified) (2 diffs)
-
stacktrace.h (modified) (2 diffs)
-
symtab.h (modified) (1 diff)
-
synch/condvar.h (modified) (1 diff)
-
synch/futex.h (modified) (1 diff)
-
synch/mutex.h (modified) (1 diff)
-
synch/rwlock.h (modified) (1 diff)
-
synch/semaphore.h (modified) (1 diff)
-
synch/spinlock.h (modified) (1 diff)
-
synch/waitq.h (modified) (1 diff)
-
syscall/copy.h (modified) (1 diff)
-
syscall/syscall.h (modified) (1 diff)
-
sysinfo/sysinfo.h (modified) (1 diff)
-
time/clock.h (modified) (1 diff)
-
time/delay.h (modified) (1 diff)
-
time/timeout.h (modified) (1 diff)
-
typedefs.h (modified) (1 diff)
-
userspace.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/avl.h
r7c682dd1 rd99c1d2 36 36 #define KERN_AVLTREE_H_ 37 37 38 #include <arch/types.h>39 38 #include <typedefs.h> 40 39 -
kernel/generic/include/adt/bitmap.h
r7c682dd1 rd99c1d2 36 36 #define KERN_BITMAP_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 #define BITS2BYTES(bits) (bits ? ((((bits)-1)>>3)+1) : 0) -
kernel/generic/include/adt/btree.h
r7c682dd1 rd99c1d2 36 36 #define KERN_BTREE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <adt/list.h> 40 40 -
kernel/generic/include/adt/hash_table.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <adt/list.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 41 41 /** Set of operations for hash table. */ -
kernel/generic/include/adt/list.h
r7c682dd1 rd99c1d2 36 36 #define KERN_LIST_H_ 37 37 38 #include <arch/types.h>39 38 #include <typedefs.h> 40 39 -
kernel/generic/include/atomic.h
r7c682dd1 rd99c1d2 36 36 #define KERN_ATOMIC_H_ 37 37 38 #include <arch/types.h> 39 40 typedef struct atomic { 41 volatile atomic_count_t count; 42 } atomic_t; 43 38 #include <typedefs.h> 44 39 #include <arch/atomic.h> 45 40 -
kernel/generic/include/byteorder.h
r7c682dd1 rd99c1d2 36 36 #define KERN_BYTEORDER_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 #if !(defined(__BE__) ^ defined(__LE__)) -
kernel/generic/include/config.h
r7c682dd1 rd99c1d2 36 36 #define KERN_CONFIG_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <arch/mm/page.h> 40 40 -
kernel/generic/include/console/chardev.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <adt/list.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 #include <synch/waitq.h> 41 41 #include <synch/spinlock.h> -
kernel/generic/include/console/console.h
r7c682dd1 rd99c1d2 36 36 #define KERN_CONSOLE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <console/chardev.h> 40 40 -
kernel/generic/include/context.h
r7c682dd1 rd99c1d2 36 36 #define KERN_CONTEXT_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <arch/context.h> 40 40 -
kernel/generic/include/ddi/ddi.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <ddi/ddi_arg.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 #include <proc/task.h> 41 41 #include <adt/list.h> -
kernel/generic/include/ddi/device.h
r7c682dd1 rd99c1d2 36 36 #define KERN_DEVICE_H_ 37 37 38 #include <arch/types.h>39 38 #include <typedefs.h> 40 39 -
kernel/generic/include/ddi/irq.h
r7c682dd1 rd99c1d2 81 81 #ifdef KERNEL 82 82 83 #include < arch/types.h>83 #include <typedefs.h> 84 84 #include <adt/list.h> 85 85 #include <adt/hash_table.h> -
kernel/generic/include/func.h
r7c682dd1 rd99c1d2 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_FUNC_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <atomic.h> 40 40 -
kernel/generic/include/interrupt.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <arch/interrupt.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 #include <proc/task.h> 41 41 #include <proc/thread.h> -
kernel/generic/include/ipc/event.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <ipc/event_types.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 #include <synch/spinlock.h> 41 41 #include <ipc/ipc.h> -
kernel/generic/include/ipc/irq.h
r7c682dd1 rd99c1d2 41 41 #include <ipc/ipc.h> 42 42 #include <ddi/irq.h> 43 #include < arch/types.h>43 #include <typedefs.h> 44 44 #include <adt/list.h> 45 45 -
kernel/generic/include/ipc/sysipc.h
r7c682dd1 rd99c1d2 38 38 #include <ipc/ipc.h> 39 39 #include <ipc/irq.h> 40 #include < arch/types.h>40 #include <typedefs.h> 41 41 42 42 unative_t sys_ipc_call_sync_fast(unative_t phoneid, unative_t method, -
kernel/generic/include/lib/elf.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <arch/elf.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 41 41 /** 42 42 * current ELF version 43 43 */ 44 #define EV_CURRENT 145 46 /** 47 * ELF types 44 #define EV_CURRENT 1 45 46 /** 47 * ELF types 48 48 */ 49 49 #define ET_NONE 0 /* No type */ -
kernel/generic/include/lib/rd.h
r7c682dd1 rd99c1d2 36 36 #define KERN_RD_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 /** 41 41 * RAM disk version 42 42 */ 43 #define RD_VERSION 143 #define RD_VERSION 1 44 44 45 45 /** -
kernel/generic/include/macros.h
r7c682dd1 rd99c1d2 38 38 #ifndef __ASM__ 39 39 40 #include < arch/types.h>40 #include <typedefs.h> 41 41 42 42 /** Return true if the intervals overlap. -
kernel/generic/include/main/main.h
r7c682dd1 rd99c1d2 36 36 #define KERN_MAIN_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 extern size_t hardcoded_kdata_size; -
kernel/generic/include/main/uinit.h
r7c682dd1 rd99c1d2 36 36 #define KERN_UINIT_H_ 37 37 38 #include <arch/types.h>39 40 38 extern void uinit(void *arg); 41 39 -
kernel/generic/include/memstr.h
r7c682dd1 rd99c1d2 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_MEMSTR_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <arch/memstr.h> 40 40 -
kernel/generic/include/mm/as.h
r7c682dd1 rd99c1d2 37 37 38 38 #ifdef KERNEL 39 #include <arch/types.h>39 #include <typedefs.h> 40 40 #else 41 #include <sys/types.h>41 #include <sys/types.h> 42 42 #endif 43 43 … … 65 65 #include <arch/mm/as.h> 66 66 #include <arch/mm/asid.h> 67 #include < arch/types.h>67 #include <typedefs.h> 68 68 #include <synch/spinlock.h> 69 69 #include <synch/mutex.h> -
kernel/generic/include/mm/buddy.h
r7c682dd1 rd99c1d2 36 36 #define KERN_BUDDY_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <adt/list.h> 40 40 -
kernel/generic/include/mm/frame.h
r7c682dd1 rd99c1d2 37 37 #define KERN_FRAME_H_ 38 38 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 #include <adt/list.h> 41 41 #include <mm/buddy.h> -
kernel/generic/include/mm/page.h
r7c682dd1 rd99c1d2 36 36 #define KERN_PAGE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <mm/as.h> 40 40 #include <memstr.h> -
kernel/generic/include/mm/tlb.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <arch/mm/asid.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 41 41 /** -
kernel/generic/include/print.h
r7c682dd1 rd99c1d2 36 36 #define KERN_PRINT_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <stdarg.h> 40 40 -
kernel/generic/include/proc/program.h
r7c682dd1 rd99c1d2 36 36 #define KERN_PROGRAM_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 struct task; -
kernel/generic/include/proc/scheduler.h
r7c682dd1 rd99c1d2 37 37 38 38 #include <synch/spinlock.h> 39 #include <time/clock.h> /* HZ */ 39 #include <time/clock.h> 40 #include <typedefs.h> 40 41 #include <atomic.h> 41 42 #include <adt/list.h> 42 43 43 #define RQ_COUNT 1644 #define NEEDS_RELINK_MAX (HZ)44 #define RQ_COUNT 16 45 #define NEEDS_RELINK_MAX (HZ) 45 46 46 47 /** Scheduler run queue structure. */ 47 48 typedef struct { 48 49 SPINLOCK_DECLARE(lock); 49 link_t rq_head; /**< List of ready threads. */50 size_t n; /**< Number of threads in rq_ready. */50 link_t rq_head; /**< List of ready threads. */ 51 size_t n; /**< Number of threads in rq_ready. */ 51 52 } runq_t; 52 53 … … 61 62 62 63 /* 63 * To be defined by architectures :64 * To be defined by architectures. 64 65 */ 65 66 extern void before_task_runs_arch(void); -
kernel/generic/include/security/cap.h
r7c682dd1 rd99c1d2 49 49 50 50 #include <syscall/sysarg64.h> 51 #include < arch/types.h>51 #include <typedefs.h> 52 52 53 53 /** -
kernel/generic/include/sort.h
r7c682dd1 rd99c1d2 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_SORT_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 /* -
kernel/generic/include/stacktrace.h
r7c682dd1 rd99c1d2 27 27 */ 28 28 29 /** @addtogroup genericdebug 29 /** @addtogroup genericdebug 30 30 * @{ 31 31 */ … … 36 36 #define KERN_STACKTRACE_H_ 37 37 38 #include <arch/types.h>39 38 #include <typedefs.h> 40 39 -
kernel/generic/include/symtab.h
r7c682dd1 rd99c1d2 36 36 #define KERN_SYMTAB_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 #define MAX_SYMBOL_NAME 64 -
kernel/generic/include/synch/condvar.h
r7c682dd1 rd99c1d2 36 36 #define KERN_CONDVAR_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/waitq.h> 40 40 #include <synch/mutex.h> -
kernel/generic/include/synch/futex.h
r7c682dd1 rd99c1d2 36 36 #define KERN_FUTEX_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/waitq.h> 40 40 -
kernel/generic/include/synch/mutex.h
r7c682dd1 rd99c1d2 36 36 #define KERN_MUTEX_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/semaphore.h> 40 40 #include <synch/synch.h> -
kernel/generic/include/synch/rwlock.h
r7c682dd1 rd99c1d2 36 36 #define KERN_RWLOCK_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/mutex.h> 40 40 #include <synch/synch.h> -
kernel/generic/include/synch/semaphore.h
r7c682dd1 rd99c1d2 36 36 #define KERN_SEMAPHORE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/waitq.h> 40 40 #include <synch/synch.h> -
kernel/generic/include/synch/spinlock.h
r7c682dd1 rd99c1d2 36 36 #define KERN_SPINLOCK_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <arch/barrier.h> 40 40 #include <preemption.h> -
kernel/generic/include/synch/waitq.h
r7c682dd1 rd99c1d2 36 36 #define KERN_WAITQ_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/spinlock.h> 40 40 #include <synch/synch.h> -
kernel/generic/include/syscall/copy.h
r7c682dd1 rd99c1d2 36 36 #define KERN_COPY_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 /** Label within memcpy_from_uspace() that contains return -1. */ -
kernel/generic/include/syscall/syscall.h
r7c682dd1 rd99c1d2 93 93 #ifdef KERNEL 94 94 95 #include < arch/types.h>95 #include <typedefs.h> 96 96 97 97 typedef unative_t (*syshandler_t)(unative_t, unative_t, unative_t, unative_t, -
kernel/generic/include/sysinfo/sysinfo.h
r7c682dd1 rd99c1d2 36 36 #define KERN_SYSINFO_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <str.h> 40 40 -
kernel/generic/include/time/clock.h
r7c682dd1 rd99c1d2 36 36 #define KERN_CLOCK_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 #define HZ 100 -
kernel/generic/include/time/delay.h
r7c682dd1 rd99c1d2 36 36 #define KERN_DELAY_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 40 40 extern void delay(uint32_t microseconds); -
kernel/generic/include/time/timeout.h
r7c682dd1 rd99c1d2 36 36 #define KERN_TIMEOUT_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <adt/list.h> 40 40 #include <cpu.h> -
kernel/generic/include/typedefs.h
r7c682dd1 rd99c1d2 36 36 #define KERN_TYPEDEFS_H_ 37 37 38 #include <arch/common.h> 38 39 #include <arch/types.h> 39 40 40 #define NULL 0 41 #define false 0 42 #define true 1 41 #define NULL 0 42 43 #define false 0 44 #define true 1 45 46 typedef struct { 47 uint64_t lo; 48 int64_t hi; 49 } int128_t; 50 51 typedef struct { 52 uint64_t lo; 53 uint64_t hi; 54 } uint128_t; 55 56 typedef struct { 57 volatile atomic_count_t count; 58 } atomic_t; 43 59 44 60 typedef void (* function)(); -
kernel/generic/include/userspace.h
r7c682dd1 rd99c1d2 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 37 37 38 38 #include <proc/thread.h> 39 #include < arch/types.h>39 #include <typedefs.h> 40 40 41 41 /** Switch to user-space (CPU user priviledge level) */
Note:
See TracChangeset
for help on using the changeset viewer.
