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:
parent
c69c5ca3b0
commit
d8fcb6da11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111167
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user