summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-09-21 00:36:22 +0200
committerRichard Braun <rbraun@sceen.net>2016-09-21 00:36:22 +0200
commite29b7797dc2aebcfb00fc08201c31ef0caf5f4d3 (patch)
tree2029331346b37e5fe6108d74703d2d5be4e2bcfd /i386/i386at
parent6923672268ae8e51e3cf303314fca196dc369e19 (diff)
Enable high memory
* i386/i386at/biosmem.c (biosmem_setup): Load the HIGHMEM segment if present. (biosmem_free_usable): Report high memory as usable. * vm/vm_page.c (vm_page_boot_table_size, vm_page_table_size, vm_page_mem_size, vm_page_mem_free): Scan all segments. * vm/vm_resident.c (vm_page_grab): Describe allocation strategy with regard to the HIGHMEM segment.
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/biosmem.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/i386/i386at/biosmem.c b/i386/i386at/biosmem.c
index 62be567c..a1040207 100644
--- a/i386/i386at/biosmem.c
+++ b/i386/i386at/biosmem.c
@@ -903,9 +903,7 @@ biosmem_setup(void)
break;
seg = &biosmem_segments[i];
-
- /* XXX Limit to directmap until highmem is supported */
- biosmem_load_segment(seg, VM_PAGE_DIRECTMAP_LIMIT);
+ biosmem_load_segment(seg, VM_PAGE_HIGHMEM_LIMIT);
}
}
@@ -986,9 +984,8 @@ biosmem_free_usable(void)
end = vm_page_trunc(entry->base_addr + entry->length);
- /* XXX Limit to directmap until highmem is supported */
- if (end > VM_PAGE_DIRECTMAP_LIMIT) {
- end = VM_PAGE_DIRECTMAP_LIMIT;
+ if (end > VM_PAGE_HIGHMEM_LIMIT) {
+ end = VM_PAGE_HIGHMEM_LIMIT;
}
if (start < BIOSMEM_BASE)