From 94b3a5b74e60c139e4b498d7fd6a876193e49208 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 13 Sep 2006 11:18:16 +0000 Subject: [PATCH] Corrected A20 enabling git-svn-id: svn://kolibrios.org@149 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 5cc32ee5ff..2e8f8942d9 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -147,6 +147,11 @@ app_data equ 3+app_data_l-gdts jnz l.6 mov al, 0xDF 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 mov eax, cr0 ; Turn on paging // protected mode or eax, ecx