From owner-freebsd-mobile Tue Jun 2 19:08:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA00108 for freebsd-mobile-outgoing; Tue, 2 Jun 1998 19:08:17 -0700 (PDT) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA00102 for ; Tue, 2 Jun 1998 19:08:16 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id SAA01602 for ; Tue, 2 Jun 1998 18:03:36 -0700 (PDT) Message-Id: <199806030103.SAA01602@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: mobile@FreeBSD.ORG Subject: New APM connect technique Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 02 Jun 1998 18:03:35 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 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