From d8fcb6da11404025fdd4b9fd423e2778b65bee50 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 20 Feb 2003 05:35:52 +0000 Subject: [PATCH] Fix fumble in rev 1.525. pmap_kenter()'s second argument is a physical address, not a page index. Laughed at by: jake --- sys/amd64/amd64/machdep.c | 2 +- sys/i386/i386/machdep.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 55133a740ce..d3f0ee6d348 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 55133a740ce..d3f0ee6d348 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