|
|
发表于 2008-7-15 16:47:40
|
显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。8 W# \, |. [9 \1 p1 T: ~6 E
ich7 spec里摘出的:
u1 @9 M; F2 a$ O----------------------------------------
* _4 E7 b& B5 B5 {4 Q. KAPM_CNT—Advanced Power Management Control Port Register# d; `/ Y4 G5 D- ?; b+ V' w1 P3 J
I/O Address: B2h Attribute: R/W
5 ]3 n4 F8 @, G# \6 [# yDefault Value: 00h Size: 8-bit
) b1 X" ~% e" p% X( J% X0 XLockable: No Usage: Legacy Only$ g3 n+ r e) ]" q' c- R! D
Power Well: Core8 B; U8 \9 g' }$ \/ w8 C6 z9 w
Bit Description5 Y; P+ _3 O. u% G; I7 C4 I- ~
7:0$ ^/ x, A- q9 r/ M6 V4 U4 f _; L
Used to pass an APM command between the OS and the SMI handler. Writes to this
, g6 e3 W4 g% pport not only store data in the APMC register, but also generates an SMI# when the
( ]1 X+ R! c: `& qAPMC_EN bit is set.- I$ x& L+ l; m f+ |: ^4 B4 h* w% d
---------------------------------------( b! D8 c( ^3 D) i z7 _
" s$ w( E: L( Z+ |! Z
[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ] |
|