Changeset 22f7769 in mainline for src/mm/vm.c
- Timestamp:
- 2005-10-17T23:31:41Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b2c872d
- Parents:
- 75eacab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mm/vm.c
r75eacab r22f7769 90 90 vm_area_t *vm_area_create(vm_t *m, vm_type_t type, size_t size, __address addr) 91 91 { 92 pri_t pri;92 ipl_t ipl; 93 93 vm_area_t *a; 94 94 … … 96 96 panic("addr not aligned to a page boundary"); 97 97 98 pri = cpu_priority_high();98 ipl = interrupts_disable(); 99 99 spinlock_lock(&m->lock); 100 100 … … 111 111 free(a); 112 112 spinlock_unlock(&m->lock); 113 cpu_priority_restore(pri);113 interrupts_restore(ipl); 114 114 return NULL; 115 115 } … … 130 130 131 131 spinlock_unlock(&m->lock); 132 cpu_priority_restore(pri);132 interrupts_restore(ipl); 133 133 134 134 return a; … … 142 142 { 143 143 int i, flags; 144 pri_t pri;145 146 pri = cpu_priority_high();144 ipl_t ipl; 145 146 ipl = interrupts_disable(); 147 147 spinlock_lock(&m->lock); 148 148 spinlock_lock(&a->lock); … … 166 166 spinlock_unlock(&a->lock); 167 167 spinlock_unlock(&m->lock); 168 cpu_priority_restore(pri);168 interrupts_restore(ipl); 169 169 } 170 170 … … 172 172 { 173 173 int i; 174 pri_t pri;175 176 pri = cpu_priority_high();174 ipl_t ipl; 175 176 ipl = interrupts_disable(); 177 177 spinlock_lock(&m->lock); 178 178 spinlock_lock(&a->lock); … … 184 184 spinlock_unlock(&a->lock); 185 185 spinlock_unlock(&m->lock); 186 cpu_priority_restore(pri);186 interrupts_restore(ipl); 187 187 } 188 188 … … 190 190 { 191 191 link_t *l; 192 pri_t pri;193 194 pri = cpu_priority_high();192 ipl_t ipl; 193 194 ipl = interrupts_disable(); 195 195 196 196 tlb_shootdown_start(); … … 203 203 tlb_shootdown_finalize(); 204 204 205 cpu_priority_restore(pri);205 interrupts_restore(ipl); 206 206 207 207 vm_install_arch(m);
Note:
See TracChangeset
for help on using the changeset viewer.