|
发表于 2008-7-15 16:47:40
|
显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。
* x. }" V2 R% ^* w) w9 @ich7 spec里摘出的:
! B. V6 l) F% t; m" ^, v# ]----------------------------------------+ z( m; B& g. [! P
APM_CNT—Advanced Power Management Control Port Register
8 f# A8 E# e- g" J- @# t- i' \1 v+ iI/O Address: B2h Attribute: R/W
$ t7 \- N6 B/ `% Y: F) JDefault Value: 00h Size: 8-bit) {8 r3 I7 H3 a8 |6 l) n5 {& j
Lockable: No Usage: Legacy Only4 g$ S5 D, \' c; c( `
Power Well: Core
$ N/ J |" S; e: p* a# N1 DBit Description
( W( R1 m) m& v i7 o0 x {7:0
8 o2 S5 {5 v5 F* ] |6 CUsed to pass an APM command between the OS and the SMI handler. Writes to this
9 }( u. } {& u0 M" R$ \port not only store data in the APMC register, but also generates an SMI# when the) W/ n- S3 S. X C
APMC_EN bit is set.# b, s' Y6 t/ S6 p8 |
---------------------------------------- Y; Z* [! f: Q0 r# C/ y
+ m4 k! E1 V- d% g! _8 v
[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ] |
|