Changeset 7ee0e2f in mainline
- Timestamp:
- 2006-06-26T10:18:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2f40fe4
- Parents:
- e45f81a
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/mm/vhpt.c
re45f81a r7ee0e2f 43 43 __address vhpt_set_up(void) 44 44 { 45 vhpt_base=(vhpt_entry_t*) frame_alloc(VHPT_WIDTH-FRAME_WIDTH,FRAME_KA); 46 if(!vhpt_base) panic("Kernel configured with VHPT but no memory for table."); 45 vhpt_base = frame_alloc(VHPT_WIDTH-FRAME_WIDTH,FRAME_KA | FRAME_ATOMIC); 46 if(!vhpt_base) 47 panic("Kernel configured with VHPT but no memory for table."); 47 48 vhpt_invalidate_all(); 48 49 return (__address) vhpt_base; -
arch/ppc64/src/mm/page.c
re45f81a r7ee0e2f 275 275 276 276 /* Allocate page hash table */ 277 phte_t *physical_phte = (phte_t *) frame_alloc(PHT_ORDER, FRAME_KA | FRAME_ PANIC);277 phte_t *physical_phte = (phte_t *) frame_alloc(PHT_ORDER, FRAME_KA | FRAME_ATOMIC); 278 278 279 279 ASSERT((__address) physical_phte % (1 << PHT_BITS) == 0); -
genarch/src/mm/as_pt.c
re45f81a r7ee0e2f 74 74 ipl_t ipl; 75 75 76 dst_ptl0 = (pte_t *) frame_alloc(ONE_FRAME, FRAME_KA | FRAME_PANIC);76 dst_ptl0 = (pte_t *) frame_alloc(ONE_FRAME, FRAME_KA); 77 77 78 78 if (flags & FLAG_AS_KERNEL) { -
generic/include/mm/frame.h
re45f81a r7ee0e2f 59 59 60 60 #define FRAME_KA 0x1 /* skip frames conflicting with user address space */ 61 #define FRAME_PANIC 0x2 /* panic on failure */ 62 #define FRAME_ATOMIC 0x4 /* do not panic and do not sleep on failure */ 63 #define FRAME_NO_RECLAIM 0x8 /* do not start reclaiming when no free memory */ 61 #define FRAME_ATOMIC 0x2 /* do not panic and do not sleep on failure */ 62 #define FRAME_NO_RECLAIM 0x4 /* do not start reclaiming when no free memory */ 64 63 65 64 #define FRAME_OK 0 /* frame_alloc return status */ -
generic/src/cpu/cpu.c
re45f81a r7ee0e2f 72 72 73 73 for (i=0; i < config.cpu_count; i++) { 74 cpus[i].stack = (__u8 *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ PANIC);74 cpus[i].stack = (__u8 *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ATOMIC); 75 75 76 76 cpus[i].id = i; -
generic/src/mm/frame.c
re45f81a r7ee0e2f 960 960 } 961 961 if (!zone) { 962 if (flags & FRAME_PANIC)963 panic("Can't allocate frame.\n");964 965 962 /* 966 963 * TODO: Sleep until frames are available again. -
test/mm/falloc1/test.c
re45f81a r7ee0e2f 55 55 allocated = 0; 56 56 for (i = 0; i < MAX_FRAMES >> order; i++) { 57 frames[allocated] = frame_alloc(order, FRAME_ATOMIC | FRAME_KA);57 frames[allocated] = (__address) frame_alloc(order, FRAME_ATOMIC | FRAME_KA); 58 58 59 59 if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { … … 61 61 } 62 62 63 if ( status == 0) {63 if (frames[allocated]) { 64 64 allocated++; 65 65 } else { -
test/mm/falloc2/test.c
re45f81a r7ee0e2f 52 52 void falloc(void * arg) 53 53 { 54 int status,order, run, allocated, i;54 int order, run, allocated, i; 55 55 __u8 val = THREAD->tid % THREADS; 56 56 index_t k; … … 66 66 allocated = 0; 67 67 for (i = 0; i < (MAX_FRAMES >> order); i++) { 68 frames[allocated] = frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status);69 if ( status == 0) {68 frames[allocated] = (__address)frame_alloc(order, FRAME_ATOMIC | FRAME_KA); 69 if (frames[allocated]) { 70 70 memsetb(frames[allocated], FRAME_SIZE << order, val); 71 71 allocated++;
Note:
See TracChangeset
for help on using the changeset viewer.