[coreboot] AML code generator

Rudolf Marek r.marek at assembler.cz
Thu Dec 25 22:13:34 CET 2008


The Coreboot will need ACPI bytecode (AML) generotor. Right now it uses quite 
hackish solution. It let the compiler compile the the table, and it has 
hardcoded binary offsets. Check amdk8_acpi.c. It somehow works, but for ACPI 
P-states we will need to generate the ACPI objects at runtime. This may be 
necessary also for C7 and perhaps for Intel too.

I wrote some proof of concept of such generator. Now it generates a skelleton 
for P-states and also some objects for amdk8_acpi.c

how to run it:
compile source
touch test
run it
iasl -d test

Examine test.dsl

Works for me ;)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: genaml.c
Type: application/octet
Size: 5765 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081225/1bbfa8b9/attachment.bin>

More information about the coreboot mailing list