forked from KolibriOS/kolibrios
string manipulation routines for drivers and kernel
enable global page support after paging git-svn-id: svn://kolibrios.org@519 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -71,12 +71,13 @@ proc init_mem
|
||||
or ebx, CR4_PSE
|
||||
mov eax, PG_LARGE+PG_SW
|
||||
|
||||
bt [cpu_caps-OS_BASE], CAPS_PGE
|
||||
jnc @F
|
||||
; bt [cpu_caps-OS_BASE], CAPS_PGE
|
||||
; jnc @F
|
||||
|
||||
or eax, PG_GLOBAL
|
||||
or ebx, CR4_PGE
|
||||
@@:
|
||||
; or eax, PG_GLOBAL
|
||||
; or ebx, CR4_PGE
|
||||
;
|
||||
;@@:
|
||||
mov cr4, ebx
|
||||
dec [pg_data.kernel_tables-OS_BASE]
|
||||
|
||||
@@ -122,15 +123,8 @@ proc init_mem
|
||||
|
||||
mov edi, (sys_pgdir-OS_BASE)
|
||||
lea esi, [edi+(OS_BASE shr 20)]
|
||||
lodsd
|
||||
and eax, not PG_GLOBAL
|
||||
stosd
|
||||
lodsd
|
||||
and eax, not PG_GLOBAL
|
||||
stosd
|
||||
lodsd
|
||||
and eax, not PG_GLOBAL
|
||||
stosd
|
||||
movsd
|
||||
movsd
|
||||
ret
|
||||
endp
|
||||
|
||||
|
Reference in New Issue
Block a user