summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>1999-07-29 18:15:33 +0000
committeriwasaki <iwasaki@FreeBSD.org>1999-07-29 18:15:33 +0000
commit2e7d3a32be1e04ec8661571da6f51f7cd907eb19 (patch)
tree30735c816e6352d87b3a9693aa9bbdb2f68f8592 /sys/i386/bios
parent7c9726279aa1e10d2e2d90172a3a04226800d670 (diff)
downloadFreeBSD-src-2e7d3a32be1e04ec8661571da6f51f7cd907eb19.zip
FreeBSD-src-2e7d3a32be1e04ec8661571da6f51f7cd907eb19.tar.gz
No more apm_errno. It breaks the build with APM_DEBUG,
uses (sc->bios.r.eax >> 8) & 0xff instead.
Diffstat (limited to 'sys/i386/bios')
-rw-r--r--sys/i386/bios/apm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index ae2d0ec..02d4bfd 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -15,7 +15,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
- * $Id: apm.c,v 1.93 1999/07/28 20:20:29 msmith Exp $
+ * $Id: apm.c,v 1.94 1999/07/29 01:49:12 msmith Exp $
*/
#include "opt_devfs.h"
@@ -972,7 +972,7 @@ apm_attach(device_t dev)
if (apm_enable_disable_pm(1)) {
#ifdef APM_DEBUG
printf("apm: *Warning* enable function failed! [%x]\n",
- apm_errno);
+ (sc->bios.r.eax >> 8) & 0xff);
#endif
}
}
@@ -982,7 +982,7 @@ apm_attach(device_t dev)
if (apm_engage_disengage_pm(1)) {
#ifdef APM_DEBUG
printf("apm: *Warning* engage function failed err=[%x]",
- apm_errno);
+ (sc->bios.r.eax >> 8) & 0xff);
printf(" (Docked or using external power?).\n");
#endif
}
OpenPOWER on IntegriCloud