Hacker News new | past | comments | ask | show | jobs | submit login

ACPI contains code!

https://docs.microsoft.com/en-us/windows-hardware/drivers/br...

> ACPI defines an interpreted language (ACPI source language, or ASL) and an execution environment (ACPI virtual machine) for describing system devices and features, and their platform-specific controls, in an OS-agnostic way.

> ASL is used to define named objects in the ACPI namespace, and the Microsoft ASL compiler is used to produce ACPI machine language (AML) byte code for transmission to the operating system in the DSDT.

Linux drivers run this code via the acpi_evaluate_* functions.

https://lwn.net/Articles/367630/

Microsoft defined another interface on top of ACPI called WMI. Unfortunately it seems to be widely used.

https://docs.microsoft.com/en-us/windows-hardware/drivers/ke...

https://lwn.net/Articles/391230/

On Linux it's easy to extract and decompile the DSDT:

  $ cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
  $ iasl -d dsdt.dat
https://wiki.archlinux.org/index.php/DSDT



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: