diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-25 17:15:23 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-25 17:15:23 +0000 |
commit | 026d52518ba99cf3d00cd8f5f9aba80224935013 (patch) | |
tree | 7bda7d98edcb6e52c6bad8652863aabc3d970613 | |
parent | 4879233fb9d58d8929a34b78dabee003b883fa48 (diff) |
correct return value on apmcall failure
-rw-r--r-- | sys/arch/i386/i386/locore.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index 607989db29d..b7912d48a99 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.28 1997/07/18 06:49:26 mickey Exp $ */ +/* $OpenBSD: locore.s,v 1.29 1997/07/25 17:15:22 mickey Exp $ */ /* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */ /*- @@ -2310,6 +2310,7 @@ ENTRY(apmcall) movw %cx,APMREG_CX(%esi) movw %dx,APMREG_DX(%esi) /* todo: do something with %edi? */ + movl $1, %eax cmpl $0,apmstatus jne 1f xorl %eax,%eax |