get_pg_addr now correctly handles the kernel large page

git-svn-id: svn://kolibrios.org@3166 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-01-14 09:39:51 +00:00
parent 8819a40f56
commit 9f2e9bf07a

View File

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