|
发表于 2008-7-15 16:47:40
|
显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。
& g7 p1 L/ V! P3 [- c) C3 r$ O- Pich7 spec里摘出的:
' q9 ?0 q, p7 L: d# ?# @----------------------------------------
" P3 O n; ~( h& i, {APM_CNT—Advanced Power Management Control Port Register/ I; v& E. S0 n& L3 b# F; g1 U
I/O Address: B2h Attribute: R/W2 D1 K' y/ y$ }
Default Value: 00h Size: 8-bit. H% s7 L; }( s e$ R3 g- \
Lockable: No Usage: Legacy Only
, T5 J- [# b' \) M5 v4 w t% }Power Well: Core
3 L6 @0 I; Q" m7 g* G% fBit Description% h8 O# ]$ v5 T& C
7:0! S5 F9 y% ~! F1 L+ h& g
Used to pass an APM command between the OS and the SMI handler. Writes to this
2 B4 o$ o' T, x B/ p; {port not only store data in the APMC register, but also generates an SMI# when the
k5 y0 l' u' J9 O$ A1 |APMC_EN bit is set.
8 J& H* G& l9 N& r& [1 f. A---------------------------------------0 p( \& L( \$ `: k1 E( G* d" V/ X
# m7 h$ p2 x8 p/ H4 m/ T3 x[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ] |
|