From a4911248e112354cba2f4aec99e77dc00d97d3d3 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 29 Jun 2001 22:20:32 +0000 Subject: return normal is error code returned is zero, for some thinkpads --- sys/arch/i386/i386/apmcall.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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 -- cgit v1.2.3