From 9f2e9bf07aee7640f32f408bc80b10c109c92dd8 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 14 Jan 2013 09:39:51 +0000 Subject: [PATCH] get_pg_addr now correctly handles the kernel large page git-svn-id: svn://kolibrios.org@3166 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/memory.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/core/memory.inc b/kernel/trunk/core/memory.inc index 668dc7ec65..ca9d92575d 100644 --- a/kernel/trunk/core/memory.inc +++ b/kernel/trunk/core/memory.inc @@ -606,8 +606,12 @@ update_mem_size: align 4 get_pg_addr: + sub eax, OS_BASE + cmp eax, 0x400000 + jb @f shr eax, 12 - mov eax, [page_tabs+eax*4] + mov eax, [page_tabs+(eax+(OS_BASE shr 12))*4] +@@: and eax, 0xFFFFF000 ret