OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 5:52 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How do I do ACPI?
PostPosted: Mon Jul 06, 2020 10:31 am 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
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

_________________
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg


Top
 Profile  
 
 Post subject: Re: How do I do ACPI?
PostPosted: Mon Jul 06, 2020 11:16 am 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 402
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.


Top
 Profile  
 
 Post subject: Re: How do I do ACPI?
PostPosted: Mon Jul 06, 2020 12:29 pm 
Offline
Member
Member
User avatar

Joined: Fri Aug 07, 2015 6:13 am
Posts: 1134
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.

_________________
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 0xY, Bing [Bot] and 167 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group