2012年10月20日 星期六

ACPICA

ACPI is the basic infrastructure for the Windows and Linux now.  It's the interface for the BIOS and OS.
If you want to study more about the ACPI structure, you should also study https://www.acpica.org


The ACPI Component Architecture Project

line
The ACPI Component Architecture (ACPICA) project provides an operating system (OS)-independent reference implementation of the Advanced Configuration and Power Interface Specification (ACPI). It can be easily adapted to execute under any host OS. The ACPICA code is meant to be directly integrated into the host OS as a kernel-resident subsystem. Hosting the ACPICA subsystem requires no changes to the core ACPICA code. Instead, a small OS-specific interface layer is written specifically for each host OS in order to interface the ACPICA code to the native OS services.


You can download the ACPICA windows source code in the https://www.acpica.org/downloads/source_code.php.  You can build it by Visual studio and play it.

But the iASL(ASLCompiler) is more complex to build it.  And it will need 

For iASL, these versions of Flex and Bison are required:
flex: version 2.5.4 or greater
bison: version 2.4.1 or greater

Please download and setup flex and bison from  http://gnuwin32.sourceforge.net/.
You can install the bison and flex in the C:\GnuWin32.

After all, you will need to m4.exe and regex2.dll to the .\acpica\generate\msvc9 to build it OK.