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

如何有软体产生一个SMI

[复制链接]
发表于 2008-7-15 16:09:22 | 显示全部楼层 |阅读模式
想写一个小程序.可以由该软件产生一个SMI事件给BIOS? 有没有前辈指点一下!
发表于 2008-7-15 16:23:13 | 显示全部楼层
我刚好在看ICH8 datasheet,其中3 T7 k8 K3 }, C$ o; M' F
PM1_STS—Power Management 1 Status Register $ X; b( |$ h$ }- m" }; Q
Note: Bit 5 does not cause an SMI# or a wake event. Bit 0 does not cause a wake event but can cause an " p/ z# u" v( s
SMI# or SCI.
2 f+ v, P+ ~& r7 J
建议在DATASHEET中搜索一下SMI' V4 A9 P) C* d  Y+ U
/ D/ W; |5 y' O* V) |; I
[ 本帖最后由 jackey_gu 于 2008-7-15 16:24 编辑 ]
回复

使用道具 举报

发表于 2008-7-15 16:47:40 | 显示全部楼层
可以把software smi value写入一个特定SMI TRAP IO端口来产生SW SMI。对于intel chipset来说,这个端口一般是0B2h。4 J, t0 h+ [# H) z/ e
ich7 spec里摘出的:
6 o' e. j$ {/ |7 g----------------------------------------( Z' A" f& x$ g! y; h. f
APM_CNT—Advanced Power Management Control Port Register/ a( [- B7 x# K1 Y) x4 l9 D
I/O Address:   B2h          Attribute: R/W
" O$ L3 a$ c  v+ A8 zDefault Value: 00h          Size:      8-bit
+ G, H  f8 k+ s7 w3 `Lockable:      No           Usage:     Legacy Only
9 `  {" g+ V. e; x8 X8 X8 V, d4 LPower Well:    Core
2 u+ ^$ U/ U' q+ tBit Description
4 r# i7 A! I" N7:0' C7 \! P  Z/ H( m  J1 O7 l
Used to pass an APM command between the OS and the SMI handler. Writes to this
; M- j/ M  G9 x3 fport not only store data in the APMC register, but also generates an SMI# when the
" U. y1 o! J8 B& G; y) ?$ I; qAPMC_EN bit is set.
" C6 `5 C. U# j  e9 f8 t---------------------------------------
6 L1 q9 T6 Q$ }! g: B% N& Q6 o
6 w' z  t9 e; E+ V[ 本帖最后由 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-22 05:15 , Processed in 0.180913 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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