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