summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--i386/intel/pmap.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b165c35..e625ae6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * i386/intel/pmap.c (pmap_bootstrap): Extend kernel virtual memory to
+ at least the size of the physical memory.
+
2008-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
* vm/vm_fault.c (vm_fault_page): Print value returned
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 02482ae..5ed006c 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -576,7 +576,7 @@ void pmap_bootstrap()
*/
kernel_virtual_start = phys_last_addr;
kernel_virtual_end = phys_last_addr + morevm
- + (phys_last_addr - phys_first_addr) / 15;
+ + (phys_last_addr - phys_first_addr);
if (kernel_virtual_end < phys_last_addr
|| kernel_virtual_end > VM_MAX_KERNEL_ADDRESS)