Date: Tue, 02 Jun 1998 18:03:35 -0700 From: Mike Smith <mike@smith.net.au> To: mobile@FreeBSD.ORG Subject: New APM connect technique Message-ID: <199806030103.SAA01602@dingo.cdrom.com>
next in thread | raw e-mail | index | archive | help
If you're running -current on your system(s), I'd like to hear how this works for you. You will need to add options "VM86" to your kernel config. This was tested with APM 1.1 and APM 1.2 systems; I don't have an APM 1.0 system or a copy of the 1.0 spec to verify this code against. Note also that the commented out section in apm_attach which sets the cs and ds segment limits to 0xffff is probably cured by correctly calculating the segment limits as the returned value less one. (This is not detailed in revisions of the spec before 1.2.) At least the Award APM 1.2 BIOS returns '0' for the CS32 and CS16 selectors. ------- Forwarded Message From: Michael Smith <msmith@FreeBSD.ORG> Date: Tue, 2 Jun 1998 18:59:44 -0700 (PDT) Message-Id: <199806030159.SAA18407@freefall.freebsd.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-sys@FreeBSD.org Subject: cvs commit: src/sys/i386/apm apm.c apm_setup.h apm_setup.s src/sys/i386/i386 locore.s msmith 1998/06/02 18:59:43 PDT Modified files: sys/i386/apm apm.c apm_setup.h apm_setup.s sys/i386/i386 locore.s Log: If vm86 services are available, use these to perform the APM BIOS probe and intialisation. This will ultimately remove the grubby (but functional) hack that copies a real-mode function into low memory early in locore.s. Revision Changes Path 1.71 +76 -11 src/sys/i386/apm/apm.c 1.9 +3 -2 src/sys/i386/apm/apm_setup.h 1.13 +8 -4 src/sys/i386/apm/apm_setup.s 1.108 +3 -1 src/sys/i386/i386/locore.s ------- End of Forwarded Message -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806030103.SAA01602>