From b705bf27a1fbcf9262484807c9f4ff7df9de74d7 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 23 Aug 2011 18:12:53 +0200 Subject: [PATCH] Fixed bug in MapRange{User,Kernel}. --- sortix/memorymanagement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sortix/memorymanagement.cpp b/sortix/memorymanagement.cpp index 27a2a69c..bc4e381f 100644 --- a/sortix/memorymanagement.cpp +++ b/sortix/memorymanagement.cpp @@ -579,7 +579,7 @@ namespace Sortix return false; } - MapKernel(where, physicalpage); + MapKernel(page, physicalpage); } return true; @@ -599,7 +599,7 @@ namespace Sortix for ( addr_t page = where; page < where + bytes; page += 4096UL ) { addr_t physicalpage = Page::Get(); - if ( physicalpage == 0 || !MapUser(where, physicalpage) ) + if ( physicalpage == 0 || !MapUser(page, physicalpage) ) { while ( where < page ) {