User:Songziming/ACPICA
Jump to navigation
Jump to search
This page contains information of using ACPICA in your own OS. also reference ACPICA.
About ACPICA
ACPICA should be compiled inside kernel.
Prepare ACPICA Source Code
First download the source code from Github
git clone https://github.com/acpica/acpica.git
Then create a directory for ACPICA
cd /path/to/myOS
mkdir acpica && cd acpica
Copy ACPICA files
cp /path/to/acpica/source/include/* .
cp /path/to/acpica/source/components/{dispatcher,events,executer,hardware,namespace,parser,resources,tables,utilities}/* .
My Makefile will automatically find the source file and headers and compile them, so no need to add Makefile rules.
Configuration
The configuration of ACPICA is done via editing header files. One important header file is platform/acenv.h.