Changeset 402eda5 in mainline for kernel/generic/src/mm/tlb.c
- Timestamp:
- 2010-06-22T12:19:45Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9539be6
- Parents:
- a49a1a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/tlb.c
ra49a1a1 r402eda5 73 73 * to all other processors. 74 74 * 75 * @param type 76 * @param asid 77 * @param page 78 * @param count 75 * @param type Type describing scope of shootdown. 76 * @param asid Address space, if required by type. 77 * @param page Virtual page address, if required by type. 78 * @param count Number of pages, if required by type. 79 79 * 80 * @return The interrupt priority level as it existed prior to this call. 80 81 */ 81 voidtlb_shootdown_start(tlb_invalidate_type_t type, asid_t asid,82 ipl_t tlb_shootdown_start(tlb_invalidate_type_t type, asid_t asid, 82 83 uintptr_t page, size_t count) 83 84 { 85 ipl_t ipl; 86 87 ipl = interrupts_disable(); 84 88 CPU->tlb_active = false; 85 irq_spinlock_lock(&tlblock, true);89 irq_spinlock_lock(&tlblock, false); 86 90 87 91 size_t i; … … 123 127 if (cpus[i].tlb_active) 124 128 goto busy_wait; 129 130 return ipl; 125 131 } 126 132 127 133 /** Finish TLB shootdown sequence. 128 134 * 135 * @param ipl Previous interrupt priority level. 129 136 */ 130 void tlb_shootdown_finalize( void)137 void tlb_shootdown_finalize(ipl_t ipl) 131 138 { 132 irq_spinlock_unlock(&tlblock, true);139 irq_spinlock_unlock(&tlblock, false); 133 140 CPU->tlb_active = true; 141 interrupts_restore(ipl); 134 142 } 135 143
Note:
See TracChangeset
for help on using the changeset viewer.