|
|
发表于 2008-7-15 16:47:40
|
显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。: W& ~; @( U: T/ O
ich7 spec里摘出的:+ l. [) M5 u, F& X" s' x
----------------------------------------
5 |+ m- O# ]/ _4 s* c, fAPM_CNT—Advanced Power Management Control Port Register
8 K4 V9 \7 U: ^7 c; EI/O Address: B2h Attribute: R/W
1 Y0 V9 Q$ h4 i+ K! q1 U5 z1 IDefault Value: 00h Size: 8-bit
8 K/ y0 E, H A8 oLockable: No Usage: Legacy Only
& b9 [3 p* Z1 s6 i) O: q) B# x, ZPower Well: Core7 P9 j2 r* A- [, i$ f, g
Bit Description* K6 v; R. `7 r) O
7:0+ d5 U' C* ^# ?6 x; O( k1 d0 h
Used to pass an APM command between the OS and the SMI handler. Writes to this3 t9 X1 g* `, ^4 k X
port not only store data in the APMC register, but also generates an SMI# when the
! u- C ~9 v* v) s' {1 w" h) eAPMC_EN bit is set.
8 G- T* ?. u3 k0 v! V: X---------------------------------------2 Z v; A' ^: i. d. z
3 Y6 e) Y+ j7 \, n& Z2 P) [
[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ] |
|