Changeset dc747e3 in mainline for generic/src/mm
- Timestamp:
- 2005-12-15T10:27:59Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7dd2561
- Parents:
- 3fc03fd
- Location:
- generic/src/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/frame.c
r3fc03fd rdc747e3 42 42 #include <align.h> 43 43 44 spinlock_t zone_head_lock;/**< this lock protects zone_head list */45 link_t zone_head; /**< list of all zones in the system */44 SPINLOCK_INITIALIZE(zone_head_lock); /**< this lock protects zone_head list */ 45 link_t zone_head; /**< list of all zones in the system */ 46 46 47 47 /** Blacklist containing non-available areas of memory. … … 243 243 void zone_init(void) 244 244 { 245 spinlock_initialize(&zone_head_lock, "zone_head_lock");246 245 list_initialize(&zone_head); 247 246 } -
generic/src/mm/heap.c
r3fc03fd rdc747e3 44 44 45 45 static chunk_t *chunk0; 46 static spinlock_t heaplock;46 SPINLOCK_INITIALIZE(heaplock); 47 47 48 48 void early_heap_init(__address heap, size_t size) 49 49 { 50 spinlock_initialize(&heaplock, "heap_lock");51 50 memsetb(heap, size, 0); 52 51 chunk0 = (chunk_t *) heap; -
generic/src/mm/tlb.c
r3fc03fd rdc747e3 38 38 #include <panic.h> 39 39 40 #ifdef CONFIG_SMP 41 static spinlock_t tlblock; 42 #endif 40 SPINLOCK_INITIALIZE(tlblock); 43 41 44 42 void tlb_init(void) 45 43 { 46 if (config.cpu_active == 1)47 spinlock_initialize(&tlblock, "tlb_lock");48 49 44 tlb_arch_init(); 50 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
