Rev 2141 | Rev 2745 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2141 | Rev 2467 | ||
---|---|---|---|
Line 324... | Line 324... | ||
324 | base + j * PAGE_SIZE); |
324 | base + j * PAGE_SIZE); |
325 | ASSERT(pte && PTE_VALID(pte) && |
325 | ASSERT(pte && PTE_VALID(pte) && |
326 | PTE_PRESENT(pte)); |
326 | PTE_PRESENT(pte)); |
327 | btree_insert(&area->sh_info->pagemap, |
327 | btree_insert(&area->sh_info->pagemap, |
328 | (base + j * PAGE_SIZE) - area->base, |
328 | (base + j * PAGE_SIZE) - area->base, |
329 | (void *) PTE_GET_FRAME(pte), NULL); |
329 | (void *) PTE_GET_FRAME(pte), NULL); |
330 | page_table_unlock(area->as, false); |
330 | page_table_unlock(area->as, false); |
331 | 331 | ||
332 | pfn_t pfn = ADDR2PFN(PTE_GET_FRAME(pte)); |
332 | pfn_t pfn = ADDR2PFN(PTE_GET_FRAME(pte)); |
333 | frame_reference_add(pfn); |
333 | frame_reference_add(pfn); |
334 | } |
334 | } |