Changeset 0f3fc9b in mainline
- Timestamp:
- 2007-01-22T13:34:55Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 726e1043
- Parents:
- e7b7be3f
- Location:
- kernel
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/context.h
re7b7be3f r0f3fc9b 47 47 * during function call 48 48 */ 49 struct context {49 typedef struct { 50 50 uintptr_t sp; 51 51 uintptr_t pc; … … 60 60 61 61 ipl_t ipl; 62 } __attribute__ ((packed)) ;62 } __attribute__ ((packed)) context_t; 63 63 64 64 #endif -
kernel/arch/ia32/include/context.h
re7b7be3f r0f3fc9b 52 52 * function calls. 53 53 */ 54 struct context {54 typedef struct { 55 55 uintptr_t sp; 56 56 uintptr_t pc; … … 60 60 uint32_t ebp; 61 61 ipl_t ipl; 62 } __attribute__ ((packed)) ;62 } __attribute__ ((packed)) context_t; 63 63 64 64 #endif -
kernel/arch/ia32/include/fpu_context.h
re7b7be3f r0f3fc9b 45 45 46 46 47 struct fpu_context {47 typedef struct { 48 48 uint8_t fpu[512]; /* FXSAVE & FXRSTOR storage area */ 49 } ;49 } fpu_context_t; 50 50 51 51 #endif -
kernel/arch/ia64/include/context.h
re7b7be3f r0f3fc9b 67 67 * function calls. 68 68 */ 69 struct context {69 typedef struct { 70 70 71 71 /* … … 129 129 130 130 ipl_t ipl; 131 } ;131 } context_t; 132 132 133 133 #endif -
kernel/arch/ia64/include/fpu_context.h
re7b7be3f r0f3fc9b 43 43 #define FRS 96 44 44 45 struct fpu_context {45 typedef struct { 46 46 __r128 fr[FRS]; 47 } ;47 } fpu_context_t; 48 48 49 49 #endif -
kernel/arch/mips32/include/context.h
re7b7be3f r0f3fc9b 53 53 * function calls. 54 54 */ 55 struct context {55 typedef struct { 56 56 uintptr_t sp; 57 57 uintptr_t pc; … … 69 69 70 70 ipl_t ipl; 71 } ;71 } context_t; 72 72 73 73 #endif /* __ASM__ */ -
kernel/arch/mips32/include/fpu_context.h
re7b7be3f r0f3fc9b 40 40 #define FPU_CONTEXT_ALIGN sizeof(unative_t) 41 41 42 struct fpu_context {42 typedef struct { 43 43 unative_t dregs[32]; 44 44 unative_t cregs[32]; 45 } ;45 } fpu_context_t; 46 46 47 47 #endif -
kernel/arch/ppc32/include/context.h
re7b7be3f r0f3fc9b 40 40 #define SP_DELTA 16 41 41 42 struct context {42 typedef struct { 43 43 uintptr_t sp; 44 44 uintptr_t pc; … … 68 68 69 69 ipl_t ipl; 70 } __attribute__ ((packed)) ;70 } __attribute__ ((packed)) context_t; 71 71 72 72 #endif -
kernel/arch/ppc32/include/fpu_context.h
re7b7be3f r0f3fc9b 40 40 #endif 41 41 42 struct fpu_context {42 typedef struct { 43 43 uint64_t fr14; 44 44 uint64_t fr15; … … 60 60 uint64_t fr31; 61 61 uint32_t fpscr; 62 } __attribute__ ((packed)) ;62 } __attribute__ ((packed)) fpu_context_t; 63 63 64 64 #endif -
kernel/arch/ppc64/include/context.h
re7b7be3f r0f3fc9b 40 40 #define SP_DELTA 16 41 41 42 struct context {42 typedef struct { 43 43 uintptr_t sp; 44 44 uintptr_t pc; … … 68 68 69 69 ipl_t ipl; 70 } __attribute__ ((packed)) ;70 } __attribute__ ((packed)) context_t; 71 71 72 72 #endif -
kernel/arch/ppc64/include/fpu_context.h
re7b7be3f r0f3fc9b 40 40 #endif 41 41 42 struct fpu_context {42 typedef struct { 43 43 uint64_t fr14; 44 44 uint64_t fr15; … … 60 60 uint64_t fr31; 61 61 uint32_t fpscr; 62 } __attribute__ ((packed)) ;62 } __attribute__ ((packed)) fpu_context_t; 63 63 64 64 #endif -
kernel/arch/sparc64/include/context.h
re7b7be3f r0f3fc9b 57 57 * function calls. 58 58 */ 59 struct context {59 typedef struct { 60 60 uintptr_t sp; /* %o6 */ 61 61 uintptr_t pc; /* %o7 */ … … 77 77 uint64_t l7; 78 78 ipl_t ipl; 79 } ;79 } context_t; 80 80 81 81 #endif -
kernel/arch/sparc64/include/fpu_context.h
re7b7be3f r0f3fc9b 41 41 #define FPU_CONTEXT_ALIGN 8 42 42 43 struct fpu_context {43 typedef struct { 44 44 uint64_t d[32]; 45 45 uint64_t fsr; 46 } ;46 } fpu_context_t; 47 47 48 48 #endif -
kernel/generic/include/mm/buddy.h
re7b7be3f r0f3fc9b 41 41 #define BUDDY_SYSTEM_INNER_BLOCK 0xff 42 42 43 struct buddy_system; 44 43 45 /** Buddy system operations to be implemented by each implementation. */ 44 struct buddy_system_operations{46 typedef struct { 45 47 /** Return pointer to left-side or right-side buddy for block passed as 46 48 * argument. */ 47 link_t *(* find_buddy)( buddy_system_t*, link_t *);49 link_t *(* find_buddy)(struct buddy_system *, link_t *); 48 50 /** Bisect the block passed as argument and return pointer to the new 49 51 * right-side buddy. */ 50 link_t *(* bisect)( buddy_system_t*, link_t *);52 link_t *(* bisect)(struct buddy_system *, link_t *); 51 53 /** Coalesce two buddies into a bigger block. */ 52 link_t *(* coalesce)( buddy_system_t*, link_t *, link_t *);54 link_t *(* coalesce)(struct buddy_system *, link_t *, link_t *); 53 55 /** Set order of block passed as argument. */ 54 void (*set_order)( buddy_system_t*, link_t *, uint8_t);56 void (*set_order)(struct buddy_system *, link_t *, uint8_t); 55 57 /** Return order of block passed as argument. */ 56 uint8_t (*get_order)( buddy_system_t*, link_t *);58 uint8_t (*get_order)(struct buddy_system *, link_t *); 57 59 /** Mark block as busy. */ 58 void (*mark_busy)( buddy_system_t*, link_t *);60 void (*mark_busy)(struct buddy_system *, link_t *); 59 61 /** Mark block as available. */ 60 void (*mark_available)( buddy_system_t*, link_t *);62 void (*mark_available)(struct buddy_system *, link_t *); 61 63 /** Find parent of block that has given order */ 62 link_t *(* find_block)( buddy_system_t*, link_t *, uint8_t);63 void (* print_id)( buddy_system_t*, link_t *);64 } ;64 link_t *(* find_block)(struct buddy_system *, link_t *, uint8_t); 65 void (* print_id)(struct buddy_system *, link_t *); 66 } buddy_system_operations_t; 65 67 66 struct buddy_system {68 typedef struct buddy_system { 67 69 /** Maximal order of block which can be stored by buddy system. */ 68 70 uint8_t max_order; … … 71 73 /** Pointer to be used by the implementation. */ 72 74 void *data; 73 } ;75 } buddy_system_t; 74 76 75 77 extern void buddy_system_create(buddy_system_t *b, uint8_t max_order, -
kernel/generic/include/typedefs.h
re7b7be3f r0f3fc9b 50 50 typedef struct task task_t; 51 51 typedef struct thread thread_t; 52 typedef struct context context_t;53 typedef struct fpu_context fpu_context_t;54 52 55 53 typedef struct spinlock spinlock_t; … … 61 59 typedef struct waitq waitq_t; 62 60 typedef struct futex futex_t; 63 64 typedef struct buddy_system buddy_system_t;65 typedef struct buddy_system_operations buddy_system_operations_t;66 61 67 62 typedef struct as_area as_area_t; -
kernel/generic/src/mm/frame.c
re7b7be3f r0f3fc9b 425 425 } 426 426 427 static struct buddy_system_operationszone_buddy_system_operations = {427 static buddy_system_operations_t zone_buddy_system_operations = { 428 428 .find_buddy = zone_buddy_find_buddy, 429 429 .bisect = zone_buddy_bisect,
Note:
See TracChangeset
for help on using the changeset viewer.