Page 1 of 1

How do I do ACPI?

Posted: Mon Jul 06, 2020 10:31 am
by nexos
Hello,
I want to be able to use ACPI in my OS. I have seen ACPICA and tried it, but it way too large and complex for what I want. So I was wondering, what is the best way to go about ACPI? I hear ACPI is very complex because of AML and that stuff. There are only three things I am interested and they are finding PCI IRQ routing, parsing SMP info, and powering down the computer. Any suggestions?
Thanks,
nexos

Re: How do I do ACPI?

Posted: Mon Jul 06, 2020 11:16 am
by thewrongchristian
nexos wrote:Hello,
I want to be able to use ACPI in my OS. I have seen ACPICA and tried it, but it way too large and complex for what I want. So I was wondering, what is the best way to go about ACPI? I hear ACPI is very complex because of AML and that stuff.
ACPI looks like a beast, one of those "if that's the answer, WTF was the question?"
nexos wrote: There are only three things I am interested and they are finding PCI IRQ routing, parsing SMP info, and powering down the computer. Any suggestions?
Thanks,
nexos
Disclaimer, I've not tried it, but @Korona has this project in their sig:

https://github.com/qword-os/lai

When I get to the point that I care about ACPI, it's on the list to investigate, so I'd be curious how you get on.

Re: How do I do ACPI?

Posted: Mon Jul 06, 2020 12:29 pm
by Octacone
I would recommend LAI, or some other homemade GitHub interpreter.
ACPICA is one big clusterfuck, I don't like it.
When you feel mature enough, write your own. You don't have to support everything, only the things that you'll be using.