Rev 1745 | Rev 1767 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1745 | Rev 1760 | ||
---|---|---|---|
Line 272... | Line 272... | ||
272 | flags |= PAGE_GLOBAL; |
272 | flags |= PAGE_GLOBAL; |
273 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); |
273 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); |
274 | } |
274 | } |
275 | 275 | ||
276 | /* Allocate page hash table */ |
276 | /* Allocate page hash table */ |
277 | phte_t *physical_phte = (phte_t *) PFN2ADDR(frame_alloc(PHT_ORDER, FRAME_KA | FRAME_PANIC)); |
277 | phte_t *physical_phte = (phte_t *) frame_alloc(PHT_ORDER, FRAME_KA | FRAME_PANIC); |
278 | phte = (phte_t *) PA2KA((__address) physical_phte); |
- | |
279 | 278 | ||
280 | ASSERT((__address) physical_phte % (1 << PHT_BITS) == 0); |
279 | ASSERT((__address) physical_phte % (1 << PHT_BITS) == 0); |
281 | pht_init(); |
280 | pht_init(); |
282 | 281 | ||
283 | asm volatile ( |
282 | asm volatile ( |