|
|
发表于 2008-7-15 16:47:40
|
显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。
( Z' C8 _8 l: S, I! [) Cich7 spec里摘出的:0 s6 i& x1 E4 Q3 Z
----------------------------------------2 n: h9 r |# I! L2 N0 ?. l; q
APM_CNT—Advanced Power Management Control Port Register4 C2 L1 j4 _7 s' Y- M
I/O Address: B2h Attribute: R/W
) ]6 r. M) u0 GDefault Value: 00h Size: 8-bit& W% {" j8 n# l9 T5 e* Y9 f
Lockable: No Usage: Legacy Only
. L4 a! t- ~6 h; a7 A9 y' PPower Well: Core( \; [! S' f# w3 h
Bit Description' \: n. j! L0 i; s$ N
7:0
b( G7 L" d: d, E& cUsed to pass an APM command between the OS and the SMI handler. Writes to this& n1 ~% c3 i6 ?, b. z& J$ Y7 S
port not only store data in the APMC register, but also generates an SMI# when the
2 i3 n7 K: N7 t. s8 X' x5 QAPMC_EN bit is set.
" f0 }+ }& }( G---------------------------------------, S0 l: ^' S r: f6 I7 x/ Q
E2 C+ N m( y9 k
[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ] |
|