|
发表于 2008-7-15 16:47:40
|
显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。* \1 k; O# I, P& v8 E( \ O% ?
ich7 spec里摘出的:$ ]! L' \+ ^2 i* D6 l( L. _2 W
----------------------------------------5 @! A" i9 g" l' O2 o
APM_CNT—Advanced Power Management Control Port Register
& ^. f9 V6 e& S1 QI/O Address: B2h Attribute: R/W
4 ]; B* L+ D% [3 ?; t1 HDefault Value: 00h Size: 8-bit
4 a: m3 I! r4 v" hLockable: No Usage: Legacy Only
. a. W$ \% I6 v$ s. b9 M: WPower Well: Core
4 ~' `9 e }$ q- u6 ABit Description
. `! S7 U9 U/ n) E; c% a7:0
6 B/ E3 r& `, `1 x. pUsed to pass an APM command between the OS and the SMI handler. Writes to this' L1 B& n+ R) s" X8 y0 X
port not only store data in the APMC register, but also generates an SMI# when the
" p" U- k, X6 ]" ?7 JAPMC_EN bit is set.
" i- ^! {3 }8 g b& d( t$ H---------------------------------------
% V3 e* i/ @% y# ^6 U2 _# G* k. W) O8 }; d( B
[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ] |
|