From 5a633309fff479b7d59aef2caf08925a93556185 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 22 May 2020 15:44:06 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B0=D0=B9-=D1=8F=D0=B9-=D1=8F=D0=B9:=20Fix?= =?UTF-8?q?=20#7967?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://kolibrios.org@7968 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/heap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/core/heap.inc b/kernel/trunk/core/heap.inc index aa9739f083..cd52a04949 100644 --- a/kernel/trunk/core/heap.inc +++ b/kernel/trunk/core/heap.inc @@ -1529,7 +1529,7 @@ locals endl ; Size must be an exact multiple of pagesize - mov eax, size + mov eax, [size] test eax, PAGE_SIZE-1 jnz .exit @@ -1566,7 +1566,7 @@ endl jnz .loop1 ; Map second half of virtual memory to same physical memory - mov ecx, [pages] + mov ecx, [num_pages] mov edi, [phys_ptr] .loop2: stdcall map_page, esi, edi, PG_UWR