summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-02-20 05:35:52 +0000
committerpeter <peter@FreeBSD.org>2003-02-20 05:35:52 +0000
commitd8b908a683ffe66786893660145702ebb432d915 (patch)
tree43e311bf67f251d92801b27392506f13b594dcf0
parentfb9e3516317776f86f3370ae729e84e3db3d5c04 (diff)
downloadFreeBSD-src-d8b908a683ffe66786893660145702ebb432d915.zip
FreeBSD-src-d8b908a683ffe66786893660145702ebb432d915.tar.gz
Fix fumble in rev 1.525. pmap_kenter()'s second argument is a physical
address, not a page index. Laughed at by: jake
-rw-r--r--sys/amd64/amd64/machdep.c2
-rw-r--r--sys/i386/i386/machdep.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 55133a7..d3f0ee6 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1540,7 +1540,7 @@ int15e820:
* map page 1 R/W into the kernel page table so we can use it
* as a buffer. The kernel will unmap this page later.
*/
- pmap_kenter(KERNBASE + (1 << PAGE_SHIFT), 1);
+ pmap_kenter(KERNBASE + (1 << PAGE_SHIFT), 1 << PAGE_SHIFT);
/*
* get memory map with INT 15:E820
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 55133a7..d3f0ee6 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -1540,7 +1540,7 @@ int15e820:
* map page 1 R/W into the kernel page table so we can use it
* as a buffer. The kernel will unmap this page later.
*/
- pmap_kenter(KERNBASE + (1 << PAGE_SHIFT), 1);
+ pmap_kenter(KERNBASE + (1 << PAGE_SHIFT), 1 << PAGE_SHIFT);
/*
* get memory map with INT 15:E820
OpenPOWER on IntegriCloud