From owner-FreeBSD-tech-jp@jp.freebsd.org  Sun Sep 19 13:16:43 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id NAA09099;
	Sun, 19 Sep 1999 13:16:43 +0900 (JST)
	(envelope-from owner-FreeBSD-tech-jp@jp.FreeBSD.org)
Received: from light.imasy.or.jp (root@light.imasy.or.jp [202.227.24.4])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id NAA09094
	for <FreeBSD-tech-jp@jp.freebsd.org>; Sun, 19 Sep 1999 13:16:42 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (daemon@tasogare.imasy.or.jp [202.227.24.5])
	by light.imasy.or.jp (8.9.3+3.2W/3.7W-light) with ESMTP id NAA00264
	for <FreeBSD-tech-jp@jp.freebsd.org>; Sun, 19 Sep 1999 13:16:42 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (isdnb08.imasy.or.jp [202.227.24.136])
	by tasogare.imasy.or.jp (8.9.3+3.2W/3.7W-tasogare/smtpfeed 1.01) with ESMTP id NAA16990;
	Sun, 19 Sep 1999 13:16:40 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Message-Id: <199909190416.NAA16990@tasogare.imasy.or.jp>
To: FreeBSD-tech-jp@jp.freebsd.org,
        takawata@shidahara1.planet.sci.kobe-u.ac.jp
In-Reply-To: Your message of "Sun, 19 Sep 1999 10:14:51 +0900"
	<199909190114.KAA22835@shidahara1.planet.sci.kobe-u.ac.jp>
References: <199909190114.KAA22835@shidahara1.planet.sci.kobe-u.ac.jp>
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Sun, 19 Sep 1999 13:19:35 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 980905(IM100)
Lines: 70
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: FreeBSD-tech-jp 2526
Subject: [FreeBSD-tech-jp 2526] Re: FreeBSD ACPI support? 
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

$B$$$o$5$-$G$9(B

> >$B$I$J$?$+6=L#$N$"$k?M!"0l=o$K:n6H$7$^$;$s$+(B?
> >$B@-JL!"G/NpEy!"@)8B$OFC$K$"$j$^$;$s(B :-)
> 
> $B$H$j$"$($:!"<j$r5s$2$H$-$^$9$,(B...$B!#(B

$B$r$r(B!  $B4|BT$7$F$$$??M$,=P$F$-$?(B :-)
ACPI $B$OBgJ,A0!9$K(B spec $B$rF~<j$7$F0u:~$7$F$*$$$?$s$G$9$,!"(B
$BCQ$:$+$7$J$,$i$"$NNL$K$&$s$6$j$7$F$:$C$HKm$H$7$F;H$C$F$^$7$?!#(B
$B$^$@:rF|$+$iFI$_;O$a$?$P$+$j$N=i?4<T%l%Y%k$J$N$G!"$4;XFn$N%[%I(B
$B$h$m$7$/$*4j$$$7$^$9(B (_ _)

> $BBgJ*$N(BAML$B%Q!<%5(B($B2?=h$K$*$1$P$$$$$+$b5DO@$N$7$I$3$m(B)$B$J$s$F$b$N$b(B
> $B$"$j$^$9$7(B....$B3d$j9~$_$bHt$s$GMh$k$H;W$$$^$9!#B?J,(BSMI$B%3%^%s%I%]!<%H$K(B
> ACPI_ENABLE$B$r=q$-9~$`$N$,0UL#$r;}$D$N$O$+$J$j8e$K$J$k$H;W$$$^$9!#(B

address range $B$N>pJs$rD/$a$F$U$H;W$C$?$s$G$9$,!"(Binit386() $B$N(B
$B%a%b%j%5%$%:8!=P=hM}$NCf$G!"(BSize up each available chunk of physical memory
$B$H$+$$$C$F(B write/read test $B$r$d$C$F$$$^$9$,!"$3$l$C$F$^$:$/$J$$$G$9$+(B?
spec $B$N(B 9.3.1 Turning On ACPI $B$K(B

When control is passed to the operating system, the OS will then
enable the ACPI mode by first scanning memory for the ACPI tables, and
then generates a write of the ACPI_ENABLE value to the SMI_CMD port
(as described in the FACP table).

$B$H$"$C$F!"$^$?(B 9.3.2 BIOS Initialization of Memory $B$K!"(B

When the OS is finished using the ACPI tables, it is free to reclaim
this memory for system software use (application space).

$B$H$"$k$s$G$9$,!"8=>u$N<BAu$G$O%O%J$+$i(B ACPI Reclaim Memory $B$r(B
application space $B$H$7$F;H$o$;$k$h$&$K$J$C$F$$$k$h$&$G$9!#(B
$B$7$+$b$3$N(B write/read test $B$,(B first scanning memory for the ACPI tables 
$B$H$J$C$F$$$k$N$KL50UL#$KJQ$JCM$r=q$-9~$s$G(B ACPI $BE*$K$O$J$K$b$7$F$$$J$$(B...
$B$&$A$N(B chandra2 $B$G(B acpitblrd($BEOJU$5$s:n(B) $B$,$^$C$?$/>pJs$r(B
$B<hF@$G$-$J$+$C$?$N$O$3$l$,860x$+$b$7$l$^$;$s!#(BP2B $B$N(B M/B $B$G(B
$B$&$^$/$$$C$F$$$^$9$,!"$3$l$b6vA3$J$N$+$b$7$l$^$;$s$G$9!#(B

$B$H$$$&$o$1$G!":rLkN.$7$?%3!<%I$G<hF@$7$?(B SMAP_table $B$+$i(B 
ACPI Reclaim Memory $B$N(B address range $B$rJ]8n$7$F$"$2$k=$@5$b(B
$BI,MW$+$J$!$H;W$C$F$$$^$9!#(B
#$B%a%b%j4IM}$N=i4|2=0JA0$KE,Ev$K%Z!<%8$r3d$jEv$F$F!"(B
#$B$=$A$i$K%3%T!<$7$A$c$&$N$b%"%j(B?

AML$B%Q!<%5$NCV$->l$O(B...$B$3$l$+$i(B spec $BFI$s$G9M$($F$_$^$9(B (^^;
$B:#$^$G$"$C$?5DO@$G$O$I$s$J46$8$J$s$G$7$g$&(B?
$B$J$s$H$J$/(B kernel space $B$K$"$l$P!"(Bbus/device $B8!=P$J$s$+$K(B
$BMxMQ$G$-$k$+$J$!$HLQA[$7$F$^$9!#(B

> $B!t$&!<$s!"$"$N(BAML$B%Q!<%5$+$J$j$N>pJs$,=&$($k$h$&$K$J$C$F$k$1$I!"$0$A$c$0$A$c(B
> $B!t$7$FMh$?$+$i=q$-D>$9$+$J!#(B

$B$6$C$HFI$s$G$_$^$7$?$,!"(B/dev/mem $B$X$N%"%/%;%9$r$J$s$H$+$9$l$P(B
kernel $B$X0z$C1[$7$9$k$N$bFq$7$/$J$$5$$,$7$^$9!#=hM}$r(B kernel/userland $B$K(B
$BJ,N%$G$-$l$P$$$$$G$9$h$M!#(B

> >$B$^$?!"(BNetBSD $B$d(B Linux $B$G$N>pJs$r$*;}$A$NJ}!"$J$K$+65$($F$/$@$5$$$^$;!#(B
> 
> Linux $B$@$H!"(B
> ACPI4Linux(http://phobos.fachschaften.tu-muenchen.de/acpi/)
> $B$,$"$k$h$&$G$9!#$J$s$+(BLinus$B$N%a!<%k$b$A$g$C$HN.$l$FMh$^$7$?!#(B

$B$"$j$,$H$&$4$6$$$^$9!#F|K\8l$G$N>pJs8;$C$F$"$j$^$9$+$M(B?
# $B$H$$$&$+!"(BLinux kernel source $B$r$$$8$C$F$$$kF|K\$N%3%_%K%e%F%#(B
# $B$X$N%"%/%;%9$O$I$3$rD4$Y$l$P$$$$$s$G$7$g$&$+(B?

$B$=$&$$$($P:G6a(B Linus $B$5$s$H%a!<%k$r$d$j$H$j$7$F$?$s$G!"(B
$B$D$$$G$K$J$K$+J9$$$F$_$^$9!#(B
