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:
parent
8819a40f56
commit
9f2e9bf07a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user