On 13/11/18 05:39, Almudena Garcia wrote:
> In my docs, I've written the procedure to get this:
> 
> /- How to find APIC table
> To find APIC table, we can read RSDT table RSDT reference. To get the
> address of RSDT, we need to read RDSP table./
> /Once got RSDT table, we need to read Entry field, and search the
> pointer to the APIC table in the array referenced in this field./

You could reuse some of the code I wrote in acpi.{c,h} and modify it as
you need to only get the required table(s), my function gets all the
tables, but you can restrict it to ones that match the four byte
"signature" that you need and clean it up so it only supports the
minimum required.  Also, considering you are in kernel land, it would be
probably easier to read physical pointers you don't need mmap or /dev/mem.

Damien

Reply via email to