From sanpei@sanpei.org Sun Aug  8 08:11:14 1999
Return-Path: <sanpei@sanpei.org>
Received: from titanium.yy.ics.keio.ac.jp (titanium.yy.ics.keio.ac.jp [131.113.47.73])
	by hub.freebsd.org (Postfix) with ESMTP id B552814F67
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  8 Aug 1999 08:10:51 -0700 (PDT)
	(envelope-from sanpei@sanpei.org)
Received: from oxygen.yy.ics.keio.ac.jp (oxygen.yy.ics.keio.ac.jp [131.113.47.3])
	by titanium.yy.ics.keio.ac.jp (8.8.8+3.0Wbeta13/3.7W) with ESMTP id AAA23330;
	Mon, 9 Aug 1999 00:07:34 +0900 (JST)
Received: from lavender.yy.cs.keio.ac.jp (ppp028.dialup.hc.keio.ac.jp [131.113.233.28])
	by oxygen.yy.ics.keio.ac.jp (8.9.3+3.2W/3.7W) with ESMTP id AAA00609;
	Mon, 9 Aug 1999 00:07:32 +0900 (JST)
Received: (from sanpei@localhost)
	by lavender.yy.cs.keio.ac.jp (8.9.3/3.7W) id AAA18497;
	Mon, 9 Aug 1999 00:06:26 +0900 (JST)
Message-Id: <199908081506.AAA18497@lavender.yy.cs.keio.ac.jp>
Date: Mon, 9 Aug 1999 00:06:26 +0900 (JST)
From: sanpei@sanpei.org
Reply-To: sanpei@sanpei.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: [APM] kernel panic with apm command(Sotec WinBookPro).
X-Send-Pr-Version: 3.2

>Number:         13028
>Category:       i386
>Synopsis:       [APM] kernel panic with apm command(Sotec WinBookPro).
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    iwasaki
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug  8 08:10:00 PDT 1999
>Closed-Date:    Sat Aug 14 11:46:17 PDT 1999
>Last-Modified:  Sat Aug 14 11:49:46 PDT 1999
>Originator:     MIHIRA Yoshiro
>Release:        FreeBSD 4.0-19990806-CURRENT i386
>Organization:
Keio Univ.
>Environment:

FreeBSD sunflower.sanpei.org 4.0-19990806-CURRENT FreeBSD 4.0-19990806-CURRENT #1: Sun Aug  8 14:30:53 JST 1999     sanpei@sunflower.sanpei.org:/usr/src/sys/compile/PCCARD  i386

>Description:

  I have Sotec WinBookPro NOTE-PC(486DX4-100MHz).
I play with apm enabled kernel.
  But when I execute apm command, kernel panic.....

[probed message]
apm0: <APM BIOS> on motherboard
apm: APM BIOS version 0101
apm: Code16 0xc00f0000, Data 0xc00f0000
apm: Code entry 0x0000b321, Idling CPU disabled, Management disabled
apm: CS_limit=0xffff, DS_limit=0xffff
apm: found APM BIOS v1.1, connected at v1.0
apm: Slow Idling CPU disabled

[command log]
% apm
APM version: 1.0
APM Management: Enabled
AC Line Status: on-line
Battery status: charging
Remaining battery life: unknown
Remaining battery time: unknown
Number of batteries: 0
APM ioctl: cmd = 0x4040500b
APM ioctl: cmd = 0xc018500a

Fatal trap 12: page fault while in 
fault virtual address	= 0x2e
fault code		= supervisor read, page not present
instruction pointer	= 0x50:0x466
stack pointer	        = 0x10:0xc4780d0a
frame pointer	        = 0x10:0xc02a000c
code segment		= base 0xc00f0000, limit 0xffff, type 0x1b
= DPL 0, pres 1, def32 0, gran 0
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 289 (apm)
interrupt mask		= none
trap number		= 12
panic: page fault

  This problem was first appeared at FreeBSD-3.0.  With FreeBSD-2.2,
I did not have any problems about apm command.

>How-To-Repeat:

	see above description

>Fix:
	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->iwasaki 
Responsible-Changed-By: iwasaki 
Responsible-Changed-When: Sun Aug 8 08:40:59 PDT 1999 
Responsible-Changed-Why:  
I know this problem.  I'll take this one. 
State-Changed-From-To: open->closed 
State-Changed-By: iwasaki 
State-Changed-When: Sat Aug 14 11:46:17 PDT 1999 
State-Changed-Why:  
Fixed in CURRENT.  Thanks!! 

>Unformatted:
