summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/apmcall.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/apmcall.S b/sys/arch/i386/i386/apmcall.S
index 8599e7d32aa..cfb3e5bdaa6 100644
--- a/sys/arch/i386/i386/apmcall.S
+++ b/sys/arch/i386/i386/apmcall.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmcall.S,v 1.1 2000/02/21 17:09:01 mickey Exp $ */
+/* $OpenBSD: apmcall.S,v 1.2 2001/06/29 22:20:31 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -99,6 +99,10 @@ ENTRY(apmcall)
movl %ecx, 8(%edi)
movl %edx, 12(%edi)
+ testl $0xff00, %eax
+ jnz 1f
+ xorl %esi, %esi
+1:
movl %esi, %eax
popl %edi