Changeset e45f81a in mainline for generic/src
- Timestamp:
- 2006-06-26T10:07:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ee0e2f
- Parents:
- 430f12c
- Location:
- generic/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/frame.c
r430f12c re45f81a 932 932 * 933 933 */ 934 void * frame_alloc_generic(__u8 order, int flags, int * status, int *pzone)934 void * frame_alloc_generic(__u8 order, int flags, int *pzone) 935 935 { 936 936 ipl_t ipl; … … 968 968 interrupts_restore(ipl); 969 969 970 if (flags & FRAME_ATOMIC) { 971 ASSERT(status != NULL); 972 if (status) 973 *status = FRAME_NO_MEMORY; 970 if (flags & FRAME_ATOMIC) 974 971 return 0; 975 }976 972 977 973 panic("Sleep not implemented.\n"); … … 984 980 spinlock_unlock(&zone->lock); 985 981 interrupts_restore(ipl); 986 987 if (status)988 *status = FRAME_OK;989 982 990 983 if (flags & FRAME_KA) -
generic/src/mm/slab.c
r430f12c re45f81a 162 162 size_t fsize; 163 163 int i; 164 int status;165 164 int zone=0; 166 165 167 data = frame_alloc_ rc_zone(cache->order, FRAME_KA | flags, &status, &zone);168 if ( status != FRAME_OK) {166 data = frame_alloc_generic(cache->order, FRAME_KA | flags, &zone); 167 if (!data) { 169 168 return NULL; 170 169 } -
generic/src/proc/thread.c
r430f12c re45f81a 125 125 { 126 126 thread_t *t = (thread_t *)obj; 127 int status;128 127 129 128 spinlock_initialize(&t->lock, "thread_t_lock"); … … 142 141 #endif 143 142 144 t->kstack = frame_alloc _rc(STACK_FRAMES, FRAME_KA | kmflags,&status);145 if ( status) {143 t->kstack = frame_alloc(STACK_FRAMES, FRAME_KA | kmflags); 144 if (! t->kstack) { 146 145 #ifdef ARCH_HAS_FPU 147 146 if (t->saved_fpu_context)
Note:
See TracChangeset
for help on using the changeset viewer.