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

如何有软体产生一个SMI

[复制链接]
发表于 2008-7-15 16:09:22 | 显示全部楼层 |阅读模式
想写一个小程序.可以由该软件产生一个SMI事件给BIOS? 有没有前辈指点一下!
发表于 2008-7-15 16:23:13 | 显示全部楼层
我刚好在看ICH8 datasheet,其中
$ j. l& b& z1 K5 J PM1_STS—Power Management 1 Status Register
  ~; l$ }$ I9 dNote: Bit 5 does not cause an SMI# or a wake event. Bit 0 does not cause a wake event but can cause an ' d* w* c& B0 x! W6 x9 y
SMI# or SCI.
- g* ^1 V8 ]( n' |
建议在DATASHEET中搜索一下SMI  g+ v" C' p+ W' _- }- f4 f

6 {7 f  {' \: l+ P# g& q$ R. 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。
0 _) k. x, u, Qich7 spec里摘出的:
0 r: r6 i; C/ d0 v( J& F----------------------------------------
8 v/ P- L& Q9 O2 VAPM_CNT—Advanced Power Management Control Port Register; e/ I2 o6 N4 ]$ s$ y0 r- j6 j
I/O Address:   B2h          Attribute: R/W
1 r/ M  }' U# z) D' NDefault Value: 00h          Size:      8-bit* p" q* B0 ?; Y2 r
Lockable:      No           Usage:     Legacy Only' J. b5 k2 f- B1 B
Power Well:    Core. M  n7 b  b* n4 ~7 R, E" F# X
Bit Description
: a4 ?5 n6 c; q) a8 u$ C7:0. ~# I$ l- e) e: a
Used to pass an APM command between the OS and the SMI handler. Writes to this5 ^7 b4 u" ~. h9 l, x8 ^. r7 J( f1 w
port not only store data in the APMC register, but also generates an SMI# when the! D1 p: E) N  z6 ?
APMC_EN bit is set.
5 c/ @2 M$ _' U---------------------------------------3 H7 \; L* n5 t. j7 j* ?
4 d" F, _5 `' w+ J+ L* u
[ 本帖最后由 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, 2025-12-1 09:11 , Processed in 0.485348 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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