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

ACPI的问题

[复制链接]
发表于 2008-8-26 14:42:33 | 显示全部楼层 |阅读模式
Control Method的define:
0 I1 y, J) |1 H5 }1 ?A control method is a definition of how the OS can perform a simple hardware task. For example, the OS invokes control methods to read the temperature of a thermal zone. Control methods are written in an encoded language called AML that can be interpreted and executed by the ACPI-compatible OS. An ACPI-compatible system must provide a minimal set of control methods in the ACPI tables. The OS provides a set of well-defined control methods that ACPI table developers can reference in their control methods. OEMs can support different revisions of chip sets with one BIOS by either including control methods in the BIOS that test configurations and respond as needed or including a different set of control methods for each chip set revision.2 L3 [0 l6 j2 I8 i2 [' c

) [: q; I# _& M不好意思,我不是BIOS,可是对BIOS很感兴趣,最近在读ACPI Spec,脑子一团乱。。。1 c2 p7 W; A% ]) M) j. ?
问题:1,Control methods are written in an encoded language called AML that can be interpreted and executed by the ACPI-compatible OS.+ X9 C# u0 s3 X  n6 d0 p7 n
control methods不再在ACPI table里面定义吗?而据我所致ACPI table是用ASL写的呀,那上面control method的定义怎末说control methods是用AML写的呢???+ x1 y1 U0 D7 z, v( f; q3 o
      2,An ACPI-compatible system must provide a minimal set of control methods in the ACPI tables. The OS provides a set of well-defined control methods that ACPI table developers can reference in their control methods.
0 Y) `. M( o* W3 ~" g到底是谁在提供control methods??  一会儿ACPI table,一会儿OS的
 楼主| 发表于 2008-8-29 17:08:38 | 显示全部楼层
自问自答一个好了。。。
+ _1 C- [" ~' c& g+ W$ p& h1,ACPI control methods can be written in AML, but humans ordinarily write control methods in ASL.0 O* ]$ Y& [4 a, K6 s* I
2, 第二个琢磨ing.....
回复

使用道具 举报

发表于 2008-8-30 16:00:38 | 显示全部楼层
1. 写Table的时候用ASL Code,然后用编译器,如iasl,将其编译成AML。OS中的解释器只认识AML Code。
+ {" u7 {" \6 R; y" Z$ ?' r7 N/ q2. Control Mehod是什么?该怎么理解呢?我觉着可以认为他就是一个Method。如果你开发过OS的Driver的话,这就很好理解了。可Driver的时候,你可能会调用OS提供的API,但是你也要向OS提供函数或方法。
0 @: R4 `( O" |# ?* l
1 ]$ H: r* J7 t4 r不知道回答到点上了没有?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-24 01:27 , Processed in 0.047647 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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