找回密码
 加入计匠网
搜索
热搜: BIOS ACPI CPU Windows
查看: 13188|回复: 4

如何有软体产生一个SMI

[复制链接]
发表于 2008-7-15 16:09:22 | 显示全部楼层 |阅读模式
想写一个小程序.可以由该软件产生一个SMI事件给BIOS? 有没有前辈指点一下!
发表于 2008-7-15 16:23:13 | 显示全部楼层
我刚好在看ICH8 datasheet,其中4 x% d( [0 v6 @: f( r% w
PM1_STS—Power Management 1 Status Register
0 Y! j# u: N* v. @) B2 a2 g/ z- ZNote: Bit 5 does not cause an SMI# or a wake event. Bit 0 does not cause a wake event but can cause an
" x$ u; }4 Q# T' Y/ P& \/ r2 \SMI# or SCI.
. f+ K) a3 w/ }
建议在DATASHEET中搜索一下SMI
2 z5 W  c1 I/ i6 V3 u$ X5 t4 _- l! \6 S& D+ G& P
[ 本帖最后由 jackey_gu 于 2008-7-15 16:24 编辑 ]
回复

使用道具 举报

发表于 2008-7-15 16:47:40 | 显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。
- G: ]( |9 @7 r1 sich7 spec里摘出的:. M  T) n( k) Y) \7 M% l  ]
----------------------------------------
/ O0 j( k" C9 I# R$ Z8 k; f4 pAPM_CNT—Advanced Power Management Control Port Register
# M  U8 o8 U1 c* vI/O Address:   B2h          Attribute: R/W: |3 P" J' u$ a' }  O* g
Default Value: 00h          Size:      8-bit
% x3 U2 Z9 N, K+ }Lockable:      No           Usage:     Legacy Only
6 j! H! V0 U9 `' HPower Well:    Core
8 _9 H: S  D9 `1 SBit Description
" P+ i4 U3 h5 _5 z' ~7:0( V) g- w6 Z- ~" L
Used to pass an APM command between the OS and the SMI handler. Writes to this
& f2 U! v5 _- }' u$ Zport not only store data in the APMC register, but also generates an SMI# when the
) B) T" W! \0 T& ?, l% a; JAPMC_EN bit is set.
3 w0 ~! [6 [7 G( C; K  s---------------------------------------2 S+ c9 W8 X/ Q9 q2 v3 z

$ Z9 `) j* ~% i. D[ 本帖最后由 alanzhu 于 2008-7-15 16:57 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2008-7-16 08:19:59 | 显示全部楼层
谢谢,已经搞定了,往B2Port 写值就可以产生了? 那么对于不同的Chipset都是B2Port吗?
回复

使用道具 举报

发表于 2008-9-29 11:54:56 | 显示全部楼层
AMD chipset 是CD6
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入计匠网

本版积分规则

Archiver|手机版|小黑屋|计匠网

GMT+8, 2026-11-3 23:13 , Processed in 0.212589 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表