Changeset 43
- Timestamp:
- Jun 23, 2017, 7:59:41 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/hal_acpi.c
r39 r43 72 72 paddr_t basepa, pa; 73 73 vaddr_t baseva, retva, va; 74 size_t i,off, size;74 size_t off, size; 75 75 size_t npages, ngrow, n; 76 76 header_t *header; … … 118 118 { 119 119 vaddr_t va; 120 paddr_t basepa,pa;120 paddr_t pa; 121 121 uint32_t *ent; 122 122 size_t i, n; … … 210 210 paddr_t bios_max = 0x100000; 211 211 vaddr_t vabase; 212 vaddr_t va; 213 paddr_t pa; 214 size_t i, npages; 212 size_t npages; 215 213 216 214 npages = (bios_max - bios_min) / PAGE_SIZE; 217 215 vabase = hal_gpt_bootstrap_valloc(npages); 218 216 219 for (i = 0; i < npages; i++) { 220 va = vabase + i * PAGE_SIZE; 221 pa = bios_min + i * PAGE_SIZE; 222 hal_gpt_enter(va, pa); 223 invlpg(va); 224 } 217 hal_gpt_enter_range(vabase, bios_min, npages); 225 218 226 219 /* First, find RSDP */
Note: See TracChangeset
for help on using the changeset viewer.