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

ACPI的问题

[复制链接]
发表于 2008-8-26 14:42:33 | 显示全部楼层 |阅读模式
Control Method的define:
4 {) z8 |2 q  L" j2 b8 q8 F# x( G3 D7 B' PA 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.
- y# Z2 s- v5 u2 M' [, Y/ ?6 v2 f+ O9 i- ~+ v. z# b& i- h
不好意思,我不是BIOS,可是对BIOS很感兴趣,最近在读ACPI Spec,脑子一团乱。。。
7 C. n. k5 L6 a$ d, a问题:1,Control methods are written in an encoded language called AML that can be interpreted and executed by the ACPI-compatible OS.
2 t( y/ u, S  g2 p9 w% Zcontrol methods不再在ACPI table里面定义吗?而据我所致ACPI table是用ASL写的呀,那上面control method的定义怎末说control methods是用AML写的呢???8 z3 P- G' J4 |" }
      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. ( d: O6 s& q. |, L9 X5 S+ H8 i% E
到底是谁在提供control methods??  一会儿ACPI table,一会儿OS的
 楼主| 发表于 2008-8-29 17:08:38 | 显示全部楼层
自问自答一个好了。。。
+ Z6 ^, N# e2 N2 ?1,ACPI control methods can be written in AML, but humans ordinarily write control methods in ASL.3 J) p; q5 P) \5 q( N; v
2, 第二个琢磨ing.....
回复

使用道具 举报

发表于 2008-8-30 16:00:38 | 显示全部楼层
1. 写Table的时候用ASL Code,然后用编译器,如iasl,将其编译成AML。OS中的解释器只认识AML Code。
" D  L) c& w7 q2. Control Mehod是什么?该怎么理解呢?我觉着可以认为他就是一个Method。如果你开发过OS的Driver的话,这就很好理解了。可Driver的时候,你可能会调用OS提供的API,但是你也要向OS提供函数或方法。
2 X. a+ d  j* L; G5 X0 d9 x+ t0 H, V% j& v* L
不知道回答到点上了没有?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 18:58 , Processed in 0.027714 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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