diff options
author | Richard Braun <rbraun@sceen.net> | 2016-09-21 00:36:22 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-09-21 00:36:22 +0200 |
commit | e29b7797dc2aebcfb00fc08201c31ef0caf5f4d3 (patch) | |
tree | 2029331346b37e5fe6108d74703d2d5be4e2bcfd /i386/i386at/biosmem.c | |
parent | 6923672268ae8e51e3cf303314fca196dc369e19 (diff) | |
download | gnumach-e29b7797dc2aebcfb00fc08201c31ef0caf5f4d3.tar.gz gnumach-e29b7797dc2aebcfb00fc08201c31ef0caf5f4d3.tar.bz2 gnumach-e29b7797dc2aebcfb00fc08201c31ef0caf5f4d3.zip |
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/biosmem.c')
-rw-r--r-- | i386/i386at/biosmem.c | 9 |
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) |