- Timestamp:
- 2005-10-04T11:23:21Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e3f47b3
- Parents:
- 1e2aecca
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/main.c
r1e2aecca rce031f0 152 152 page_init(); 153 153 tlb_init(); 154 155 154 arch_post_mm_init(); 156 155 … … 231 230 frame_init(); 232 231 page_init(); 232 tlb_init(); 233 233 arch_post_mm_init(); 234 234 -
src/mm/tlb.c
r1e2aecca rce031f0 28 28 29 29 #include <mm/tlb.h> 30 #include <arch/mm/tlb.h> 30 31 #include <smp/ipi.h> 31 32 #include <synch/spinlock.h> … … 38 39 #ifdef __SMP__ 39 40 static spinlock_t tlblock; 41 #endif 40 42 41 43 void tlb_init(void) 42 44 { 43 spinlock_initialize(&tlblock); 45 if (config.cpu_active == 1) 46 spinlock_initialize(&tlblock); 47 48 tlb_init_arch(); 44 49 } 45 50 51 #ifdef __SMP__ 46 52 /* must be called with interrupts disabled */ 47 53 void tlb_shootdown_start(void)
Note:
See TracChangeset
for help on using the changeset viewer.