Changes in kernel/generic/src/mm/frame.c [597fa24:6188fee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
r597fa24 r6188fee 63 63 #include <proc/thread.h> /* THREAD */ 64 64 65 zones_t zones = { 66 .count = 0, 67 .lock = IRQ_SPINLOCK_INITIALIZER("frame.zones.lock"), 68 }; 65 zones_t zones; 69 66 70 67 /* … … 72 69 * available. 73 70 */ 74 static MUTEX_INITIALIZE(mem_avail_mtx, MUTEX_ACTIVE);75 static CONDVAR_INITIALIZE(mem_avail_cv);71 static mutex_t mem_avail_mtx; 72 static condvar_t mem_avail_cv; 76 73 static size_t mem_avail_req = 0; /**< Number of frames requested. */ 77 74 static size_t mem_avail_gen = 0; /**< Generation counter. */ … … 1111 1108 void frame_init(void) 1112 1109 { 1110 if (config.cpu_active == 1) { 1111 zones.count = 0; 1112 irq_spinlock_initialize(&zones.lock, "frame.zones.lock"); 1113 mutex_initialize(&mem_avail_mtx, MUTEX_ACTIVE); 1114 condvar_initialize(&mem_avail_cv); 1115 } 1116 1113 1117 /* Tell the architecture to create some memory */ 1114 1118 frame_low_arch_init();
Note:
See TracChangeset
for help on using the changeset viewer.