summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-29 22:20:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-29 22:20:32 +0000
commita4911248e112354cba2f4aec99e77dc00d97d3d3 (patch)
tree36430cfcdb4fb242522eb667fd5b6e201ef26ef6 /sys/arch
parentf25a5884f50d5ae854fda08efa08edf623aee8f4 (diff)
return normal is error code returned is zero, for some thinkpads
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