From owner-freebsd-current Sat May 1 15:58:15 1999 Delivered-To: freebsd-current@freebsd.org Received: from ftp.dns.ne.jp (ftp.dns.ne.jp [210.155.3.5]) by hub.freebsd.org (Postfix) with ESMTP id 8B95F14E52 for ; Sat, 1 May 1999 15:58:11 -0700 (PDT) (envelope-from tanimura@sakuramail.com) Received: from silver.carrots (yksk5DS01.kng.mesh.ad.jp [210.147.34.139]) by ftp.dns.ne.jp (8.9.2/8.8.5) with ESMTP id HAA23197; Sun, 2 May 1999 07:57:43 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by silver.carrots (8.9.3+3.1W/3.7W) with ESMTP id HAA62892; Sun, 2 May 1999 07:57:51 +0900 (JST) To: freebsd-current@freebsd.org Cc: Seigo TANIMURA Subject: apmconf(8) -e ends to panic in apm_bios_call From: Seigo TANIMURA X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990502075751N.tanimura@sakuramail.com> Date: Sun, 02 May 1999 07:57:51 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 49 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! When I cvsuped, made and installed the new world and kernel on 1st May 1999, the kernel paniced in apm_bios_call called from apmconf(8) -e... [sys/i386/apm/apm_setup.s:_apm_bios_call] movl 8(%ebp),%ecx movl 4(%ebp),%ebx movl 0(%ebp),%eax pushl %ebp lcall _apm_addr <--- paniced here popl %ebp movl %eax,0(%ebp) Strangely, the kernel attaches the APM BIOS without any problem at all. [a part of /var/log/messages with APM_DEBUG] May 1 14:15:20 silver /kernel: apm0: on motherboard May 1 14:15:20 silver /kernel: apm: APM BIOS version 0102 May 1 14:15:20 silver /kernel: apm: Code32 0xc00f0000, Code16 0xc00f0000, Data 0xc00fdbd0 May 1 14:15:20 silver /kernel: apm: Code entry 0x000078a8, Idling CPU disabled, Management enabled May 1 14:15:20 silver /kernel: apm: CS32_limit=0x1e, CS16_limit=0x1e, DS_limit=0x66ae May 1 14:15:20 silver /kernel: apm: Engaged control enabled May 1 14:15:20 silver /kernel: apm: found APM BIOS version 1.2 May 1 14:15:20 silver /kernel: apm: Slow Idling CPU disabled May 1 14:15:20 silver /kernel: Add hook "default suspend" May 1 14:15:20 silver /kernel: Add hook "default resume" May 1 14:15:20 silver /kernel: called apm_event_enable() On attaching, apm_event_enable() calls apm_bios_call successfully. I traced to watch _apm_addr, which pointed the correct entry(0x000078a8) in both situations. The only one difference was CS... Has anyone got a clue? Thanks in advance! Seigo TANIMURA |M2, Nakagawa Lab, Dept of Electronics & CS =========================|Faculty of Engineering, Yokohama National Univ Powered by SIEMENS, |http://www.naklab.dnj.ynu.ac.jp/~tanimura/ FreeBSD 4.0-CURRENT |http://www.sakura.ne.jp/~tcarrot/ (25th Apr 1999) & muesli.|tanimura@naklab.dnj.ynu.ac.jp tcarrot@sakuramail.com VoxWare Midi Driver for Serial Ports on FreeBSD: http://www.naklab.dnj.ynu.ac.jp/~tanimura/freebsd-serialmidi/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message