Rev 684 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 684 | Rev 687 | ||
---|---|---|---|
Line 160... | Line 160... | ||
160 | panic("unexpected vm_type_t %d", a->type); |
160 | panic("unexpected vm_type_t %d", a->type); |
161 | } |
161 | } |
162 | 162 | ||
163 | ASSERT(m->ptl0); |
163 | ASSERT(m->ptl0); |
164 | for (i=0; i<a->size; i++) |
164 | for (i=0; i<a->size; i++) |
165 | page_mapping_insert(a->address + i*PAGE_SIZE, a->mapping[i], flags, (__address) m->ptl0); |
165 | page_mapping_insert(a->address + i*PAGE_SIZE, m->asid, a->mapping[i], flags, (__address) m->ptl0); |
166 | 166 | ||
167 | spinlock_unlock(&a->lock); |
167 | spinlock_unlock(&a->lock); |
168 | spinlock_unlock(&m->lock); |
168 | spinlock_unlock(&m->lock); |
169 | interrupts_restore(ipl); |
169 | interrupts_restore(ipl); |
170 | } |
170 | } |
Line 178... | Line 178... | ||
178 | spinlock_lock(&m->lock); |
178 | spinlock_lock(&m->lock); |
179 | spinlock_lock(&a->lock); |
179 | spinlock_lock(&a->lock); |
180 | 180 | ||
181 | ASSERT(m->ptl0); |
181 | ASSERT(m->ptl0); |
182 | for (i=0; i<a->size; i++) |
182 | for (i=0; i<a->size; i++) |
183 | page_mapping_insert(a->address + i*PAGE_SIZE, 0, PAGE_NOT_PRESENT, (__address) m->ptl0); |
183 | page_mapping_insert(a->address + i*PAGE_SIZE, 0, 0, PAGE_NOT_PRESENT, (__address) m->ptl0); |
184 | 184 | ||
185 | spinlock_unlock(&a->lock); |
185 | spinlock_unlock(&a->lock); |
186 | spinlock_unlock(&m->lock); |
186 | spinlock_unlock(&m->lock); |
187 | interrupts_restore(ipl); |
187 | interrupts_restore(ipl); |
188 | } |
188 | } |