Corrected A20 enabling

git-svn-id: svn://kolibrios.org@149 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2006-09-13 11:18:16 +00:00
parent 58ea327b12
commit 94b3a5b74e

View File

@ -147,6 +147,11 @@ app_data equ 3+app_data_l-gdts
jnz l.6 jnz l.6
mov al, 0xDF mov al, 0xDF
out 0x60, al out 0x60, al
l.7: in al, 0x64
test al, 2
jnz l.7
mov al, 0xFF
out 0x64, al
lgdt [cs:gdts-0x10000] ; Load GDT lgdt [cs:gdts-0x10000] ; Load GDT
mov eax, cr0 ; Turn on paging // protected mode mov eax, cr0 ; Turn on paging // protected mode
or eax, ecx or eax, ecx