Fix fumble in rev 1.525. pmap_kenter()'s second argument is a physical

address, not a page index.

Laughed at by:  jake
This commit is contained in:
Peter Wemm 2003-02-20 05:35:52 +00:00
parent c69c5ca3b0
commit d8fcb6da11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111167
2 changed files with 2 additions and 2 deletions

View File

@ -1540,7 +1540,7 @@ getmemsize(int first)
* 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

View File

@ -1540,7 +1540,7 @@ getmemsize(int first)
* 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