[coreboot] [PATCH] Add the AML code generator for runtime code generation

Rudolf Marek r.marek at assembler.cz
Sun Feb 1 17:02:54 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Following patch adds dynamic ACPI AML code generator which can be used to
generate run-time ACPI ASL code like this:

Name (XXX, 0xXX)

Or:

    Scope (\_SB.PCI0)
    {
 Name (BUSN, Package (0x04)
{
    0x11111111,
    0x22222222,
    0x33333333,
    0x44444444
})

Moreover it demonstrates its use on Asus M2V-MX SE where the SSDT table is
generated by new function k8acpi_write_vars (technically similar to
update_ssdt). But lot of nicer ;)

The ACPI binary code generator will be also useful for P-states generation,
without ugly run-time patching of DSDT.

The old SSDT of K8 will be removed and rest of boards converted in next patch.

Tested on that board. It generates same table as the static SSDT patched by
amdk8_acpi. Windows still boots too ;)

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>

Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmFx6QACgkQ3J9wPJqZRNVoRACg1/x4GUW640LFMu3XHMwBtqV6
ODkAn2iWNSMp+pa/xZEbcziG0Il39KLO
=CNJT
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alpy.patch
Type: text/x-diff
Size: 13246 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090201/bc8873fd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alpy.patch.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090201/bc8873fd/attachment.obj>


More information about the coreboot mailing list