Changeset 47 for trunk/hal/x86_64/hal_gpt.c
- Timestamp:
- Jun 26, 2017, 11:48:28 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/hal_gpt.c
r45 r47 71 71 void hal_gpt_bootstrap_reset() 72 72 { 73 size_t npages = (va_avail - CLUSTER_HEAP_MIN_VA(0)) / PAGE_SIZE;74 hal_gpt_leave_range(CLUSTER_ HEAP_MIN_VA(0), npages);73 size_t npages = (va_avail - (CLUSTER_MIN_VA(0) + KERNEL_VA_SIZE)) / PAGE_SIZE; 74 hal_gpt_leave_range(CLUSTER_MIN_VA(0) + KERNEL_VA_SIZE, npages); 75 75 } 76 76 … … 211 211 /* Initialize global values */ 212 212 pa_avail = firstpa; 213 va_avail = CLUSTER_ HEAP_MIN_VA(0);213 va_avail = CLUSTER_MIN_VA(0) + KERNEL_VA_SIZE; 214 214 kimg_size = ((uint64_t)&__kernel_end - KERNBASE); 215 215 XASSERT(kimg_size % PAGE_SIZE == 0); … … 217 217 218 218 /* Create cluster0's heap entry. */ 219 hal_gpt_maptree_area(CLUSTER_HEAP_MIN_VA(0), CLUSTER_HEAP_MAX_VA(0)); 220 221 /* Create cluster0's kimg entry. */ 222 hal_gpt_maptree_area(CLUSTER_KIMG_MIN_VA(0), CLUSTER_KIMG_MAX_VA(0)); 219 hal_gpt_maptree_area(CLUSTER_MIN_VA(0), CLUSTER_MAX_VA(0)); 223 220 224 221 /* Manually enter cluster0's kimg */ 225 hal_gpt_enter_range(CLUSTER_ KIMG_MIN_VA(0), kimg_min_pa, kimg_size);222 hal_gpt_enter_range(CLUSTER_MIN_VA(0), kimg_min_pa, kimg_size); 226 223 } 227 224
Note: See TracChangeset
for help on using the changeset viewer.