APM system call temporary fix

git-svn-id: svn://kolibrios.org@1063 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Iliya Mihailov (Ghost) 2009-04-12 12:51:35 +00:00
parent 7438822d17
commit 94ab6bf2f1

View File

@ -5364,7 +5364,7 @@ align 4
sys_apm: sys_apm:
cmp word [apm_vf], 0 ; Check APM BIOS enable cmp word [apm_vf], 0 ; Check APM BIOS enable
jne @f jne @f
or [esp + 56], byte 1 ; error ; or [esp + 56], byte 1 ; error
mov [esp + 36], dword 8 ; 32-bit protected-mode interface not supported mov [esp + 36], dword 8 ; 32-bit protected-mode interface not supported
ret ret
@ -5374,7 +5374,7 @@ sys_apm:
cmp al, 3 cmp al, 3
ja @f ja @f
and [esp + 56], byte 0xfe ; emulate func 0..3 as func 0 ;and [esp + 56], byte 0xfe ; emulate func 0..3 as func 0 ; bad idea modify EFLAGS...
mov eax, [apm_vf] mov eax, [apm_vf]
mov [esp + 36], eax mov [esp + 36], eax
shr eax, 16 shr eax, 16
@ -5403,9 +5403,9 @@ sys_apm:
mov [esp + 28], edx mov [esp + 28], edx
mov [esp + 32], ecx mov [esp + 32], ecx
mov [esp + 36], eax mov [esp + 36], eax
setc al ; setc al
and [esp + 56], byte 0xfe ; and [esp + 56], byte 0xfe
or [esp + 56], al ; or [esp + 56], al
ret ret