mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed bug in MapRange{User,Kernel}.
This commit is contained in:
parent
ea396ddd69
commit
b705bf27a1
1 changed files with 2 additions and 2 deletions
|
@ -579,7 +579,7 @@ namespace Sortix
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
MapKernel(where, physicalpage);
|
MapKernel(page, physicalpage);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -599,7 +599,7 @@ namespace Sortix
|
||||||
for ( addr_t page = where; page < where + bytes; page += 4096UL )
|
for ( addr_t page = where; page < where + bytes; page += 4096UL )
|
||||||
{
|
{
|
||||||
addr_t physicalpage = Page::Get();
|
addr_t physicalpage = Page::Get();
|
||||||
if ( physicalpage == 0 || !MapUser(where, physicalpage) )
|
if ( physicalpage == 0 || !MapUser(page, physicalpage) )
|
||||||
{
|
{
|
||||||
while ( where < page )
|
while ( where < page )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue