mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue