forked from KolibriOS/kolibrios
Number of system pages corrected
git-svn-id: svn://kolibrios.org@1454 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
91ae6e8a7f
commit
e84fb6973a
@ -313,6 +313,8 @@ BgrDataHeight equ (OS_BASE+0x033BFFC)
|
|||||||
|
|
||||||
sys_pgmap equ (OS_BASE+0x033C000)
|
sys_pgmap equ (OS_BASE+0x033C000)
|
||||||
|
|
||||||
|
UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000)
|
||||||
|
|
||||||
virtual at (OS_BASE+0x05FFF80)
|
virtual at (OS_BASE+0x05FFF80)
|
||||||
tss TSS
|
tss TSS
|
||||||
end virtual
|
end virtual
|
||||||
|
@ -227,10 +227,8 @@ proc init_page_map
|
|||||||
jnz .scanmap
|
jnz .scanmap
|
||||||
|
|
||||||
; mark kernel memory as allocated (unavailable)
|
; mark kernel memory as allocated (unavailable)
|
||||||
mov ecx, [tmp_page_tabs]
|
mov ecx, (UPPER_KERNEL_PAGES-OS_BASE)/4096
|
||||||
mov edx, [pg_data.pages_count-OS_BASE]
|
mov edx, [pg_data.pages_count-OS_BASE]
|
||||||
shr ecx, 12
|
|
||||||
add ecx, [pg_data.kernel_tables-OS_BASE]
|
|
||||||
sub edx, ecx
|
sub edx, ecx
|
||||||
mov [pg_data.pages_free-OS_BASE], edx
|
mov [pg_data.pages_free-OS_BASE], edx
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user