From owner-freebsd-mobile Sun Feb 14 11:17:40 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27463 for freebsd-mobile-outgoing; Sun, 14 Feb 1999 11:17:40 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from send104.yahoomail.com (send104.yahoomail.com [205.180.60.122]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA27457 for ; Sun, 14 Feb 1999 11:17:37 -0800 (PST) (envelope-from valsho@yahoo.com) Message-ID: <19990214191802.16765.rocketmail@send104.yahoomail.com> Received: from [147.226.106.179] by send104.yahoomail.com; Sun, 14 Feb 1999 11:18:02 PST Date: Sun, 14 Feb 1999 11:18:02 -0800 (PST) From: Valentin Shopov Subject: Re: apm & current To: Mitsuru IWASAKI Cc: mobile@FreeBSD.ORG, Nate Williams , Warner Losh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ---Mitsuru IWASAKI wrote: > > Hello, I'm now working on APM code for PAO in Japan. > > > Also kernel panics every time when I run apm, but zzz - suspend is > > working. > > I already noticed that this problem happens on some old laptops which has > apm v1.1 or 1.0 (Sotec WinBookPro DX4/100, DEC HiNote Ultra II, etc.). > -current/-stable apm(8) try to call APM v1.2 BIOS functions > (e.g. APM_RESUMETIMER) without version checking. > Some of the old APM BIOSes, however, can make kernel panic when recieved > unkown APM BIOS functions. > In /sys/i386/apm/apm.c, apm_get_info() has the same problem > (APM_GETCAPABILITIES), therefore xbatt also will cause the same trouble. > > So, now I'm going to commit version checking code just before > calling apm_bios_call() in /sys/i386/apm/apm.c into PAO3 CVS repository. > On my old GVC G740 notebook (486DX4/75) kernel panics after calling V1.2 functions . Val == Valentin Shopov 2301 West Bethel Ave., #53 Muncie, IN 47304-2112 Phone: ++1-(765)-214-0504 E-Mail: valsho@yahoo.com valsho@usa.net URL: http://www.cyberspace.org/~valentin _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message