Changeset 05e3cb8 in mainline
- Timestamp:
- 2010-06-28T20:32:07Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3038b4
- Parents:
- 64f6ef04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/tlb.c
r64f6ef04 r05e3cb8 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 80 * @return The interrupt priority level as it existed prior to this call. 81 * 81 82 */ 82 83 ipl_t tlb_shootdown_start(tlb_invalidate_type_t type, asid_t asid, 83 84 uintptr_t page, size_t count) 84 85 { 85 ipl_t ipl; 86 87 ipl = interrupts_disable(); 86 ipl_t ipl = interrupts_disable(); 88 87 CPU->tlb_active = false; 89 88 irq_spinlock_lock(&tlblock, false); … … 91 90 size_t i; 92 91 for (i = 0; i < config.cpu_count; i++) { 93 cpu_t *cpu;94 95 92 if (i == CPU->id) 96 93 continue; 97 94 98 cpu = &cpus[i];95 cpu_t *cpu = &cpus[i]; 99 96 irq_spinlock_lock(&cpu->lock, false); 100 97 if (cpu->tlb_messages_count == TLB_MESSAGE_QUEUE_LEN) { … … 127 124 if (cpus[i].tlb_active) 128 125 goto busy_wait; 129 126 130 127 return ipl; 131 128 } … … 133 130 /** Finish TLB shootdown sequence. 134 131 * 135 * @param ipl Previous interrupt priority level. 132 * @param ipl Previous interrupt priority level. 133 * 136 134 */ 137 135 void tlb_shootdown_finalize(ipl_t ipl)
Note:
See TracChangeset
for help on using the changeset viewer.