diff options
author | jlemon <jlemon@FreeBSD.org> | 1998-09-28 03:41:12 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 1998-09-28 03:41:12 +0000 |
commit | ca535e310792ad3fae746c7a2075f98ae221b060 (patch) | |
tree | f068c33063e62a9be81d8e5a3b879212deeb8792 /sys/i386/bios | |
parent | e708a51bd07dddb6f2ec25c0062c59bde36f25f5 (diff) | |
download | FreeBSD-src-ca535e310792ad3fae746c7a2075f98ae221b060.zip FreeBSD-src-ca535e310792ad3fae746c7a2075f98ae221b060.tar.gz |
Use defines APM_BIOS and SYSTEM_BIOS instead of hardcoding 0x53 and 0x15.
Diffstat (limited to 'sys/i386/bios')
-rw-r--r-- | sys/i386/bios/apm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index 7018f1d..c871151 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.72 1998/06/07 17:09:55 dfr Exp $ + * $Id: apm.c,v 1.73 1998/07/06 06:29:03 imp Exp $ */ #include "opt_devfs.h" @@ -651,18 +651,18 @@ apmprobe(struct isa_device *dvp) #ifdef VM86 bzero(&vmf, sizeof(struct vm86frame)); /* safety */ - vmf.vmf_ax = 0x5300; + vmf.vmf_ax = (APM_BIOS << 8) | APM_INSTCHECK; vmf.vmf_bx = 0; - if (((i = vm86_intcall(0x15, &vmf)) == 0) && + if (((i = vm86_intcall(SYSTEM_BIOS, &vmf)) == 0) && !(vmf.vmf_eflags & PSL_C) && (vmf.vmf_bx == 0x504d)) { apm_version = vmf.vmf_ax; apm_flags = vmf.vmf_cx; - vmf.vmf_ax = 0x5303; + vmf.vmf_ax = (APM_BIOS << 8) | APM_PROT32CONNECT; vmf.vmf_bx = 0; - if (((i = vm86_intcall(0x15, &vmf)) == 0) && + if (((i = vm86_intcall(SYSTEM_BIOS, &vmf)) == 0) && !(vmf.vmf_eflags & PSL_C)) { apm_cs32_base = vmf.vmf_ax; |