Changeset 36b01bb2 in mainline for generic/src/mm/tlb.c
- Timestamp:
- 2006-01-24T14:38:29Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa7d9c4
- Parents:
- 0d8d27c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/tlb.c
r0d8d27c r36b01bb2 55 55 56 56 /* 57 * TODO: assemble shootdown message. 57 * TODO: wrap parameters into a message and 58 * dispatch it to all CPUs excluding this one. 58 59 */ 60 59 61 tlb_shootdown_ipi_send(); 60 62 61 switch (type) {62 case TLB_INVL_ALL:63 tlb_invalidate_all();64 break;65 case TLB_INVL_ASID:66 tlb_invalidate_asid(asid);67 break;68 case TLB_INVL_PAGES:69 tlb_invalidate_pages(asid, page, cnt);70 break;71 default:72 panic("unknown tlb_invalidate_type_t value: %d\n", type);73 break;74 }75 76 63 busy_wait: 77 64 for (i = 0; i<config.cpu_count; i++) … … 96 83 spinlock_lock(&tlblock); 97 84 spinlock_unlock(&tlblock); 98 tlb_invalidate_all(); /* TODO: use valid ASID*/85 tlb_invalidate_all(); /* TODO: be more finer-grained in what to invalidate */ 99 86 CPU->tlb_active = 1; 100 87 }
Note:
See TracChangeset
for help on using the changeset viewer.