Changeset f275cb3 in mainline for generic/src/mm/frame.c
- Timestamp:
- 2006-01-08T16:35:41Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b2c92f33
- Parents:
- 677a6d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/frame.c
r677a6d5 rf275cb3 84 84 * @return Allocated frame. 85 85 */ 86 __address frame_alloc(int flags, __u8 order )86 __address frame_alloc(int flags, __u8 order, int * status) 87 87 { 88 88 ipl_t ipl; … … 118 118 panic("Can't allocate frame.\n"); 119 119 120 121 120 122 /* 121 123 * TODO: Sleep until frames are available again. … … 124 126 interrupts_restore(ipl); 125 127 128 if (flags & FRAME_NON_BLOCKING) { 129 ASSERT(status != NULL); 130 *status = FRAME_NO_MEMORY; 131 return NULL; 132 } 133 126 134 panic("Sleep not implemented.\n"); 127 135 goto loop; … … 151 159 if (flags & FRAME_KA) 152 160 v = PA2KA(v); 161 162 if (flags & FRAME_NON_BLOCKING) { 163 ASSERT(status != NULL); 164 *status = FRAME_OK; 165 } 153 166 154 167 return v;
Note:
See TracChangeset
for help on using the changeset viewer.