1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2011-08-23 18:12:53 +02:00
parent ea396ddd69
commit b705bf27a1

View file

@ -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 )
{ {