ACPI的问题
Control Method的define: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.
不好意思,我不是BIOS,可是对BIOS很感兴趣,最近在读ACPI Spec,脑子一团乱。。。
问题:1,Control methods are written in an encoded language called AML that can be interpreted and executed by the ACPI-compatible OS.
control methods不再在ACPI table里面定义吗?而据我所致ACPI table是用ASL写的呀,那上面control method的定义怎末说control methods是用AML写的呢???
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.
到底是谁在提供control methods??一会儿ACPI table,一会儿OS的 自问自答一个好了。。。
1,ACPI control methods can be written in AML, but humans ordinarily write control methods in ASL.
2, 第二个琢磨ing..... 1. 写Table的时候用ASL Code,然后用编译器,如iasl,将其编译成AML。OS中的解释器只认识AML Code。
2. Control Mehod是什么?该怎么理解呢?我觉着可以认为他就是一个Method。如果你开发过OS的Driver的话,这就很好理解了。可Driver的时候,你可能会调用OS提供的API,但是你也要向OS提供函数或方法。
不知道回答到点上了没有?
页:
[1]