flat assembler
Message board for the users of flat assembler.

flat assembler > OS Construction > ACPI programming examples

Author
Thread Post new topic Reply to topic
anton



Joined: 08 Apr 2004
Posts: 17
Location: Moscow, Russia
Hello

I need some examples to program with ACPI. For example, how to shut down PC, how to get temperature information? Can someone help me?

Thank you.
Post 19 Apr 2004, 14:14
View user's profile Send private message Reply with quote
Brendan



Joined: 20 Apr 2004
Posts: 1
Location: Australia
Hi,

I've had a lot of trouble finding any ACPI information or advice (apart from the Spec. & ACPI/AML assemblers/disassemblers) and eventually decided to forget about ACPI support until a much later date.

As far as I can see there's 2 parts to ACPI, the tables and the interpretted language (AML/ASL). Extracting information from the tables isn't too hard, but developing an AML interpretter isn't easy (it's an OO thing that requires the OS to maintain a seperate name space containing variables & methods with different scopes).

Supporting ACPI also makes your OS susceptible from bugs within BIOS AML code and incompatibilities between different versions of ACPI. Also some AML code behaves differently depending on which version of Windows it thinks is present (in order to avoid bugs in Windows and take advantage of newer functionality). This is being replaced by a newer way where the AML code asks the OS which interface/s it supports (e.g. "Windows 98" interface, "Windows NT interface" or "Windows XP" interface). For an OS to support ACPI properly (in future) it's going to need to know how MS OS's handle ACPI so that the peculiarities of each interface can be understood.

I'd expect it'd take around 3 months of hard work to get this working enough to do what you want - it is a lot of work just to shut the PC down and get temperature information. I'd guess 6 months if you actually wanted complete ACPI support.


Cheers,

Brendan
Post 20 Apr 2004, 01:43
View user's profile Send private message Visit poster's website Reply with quote
anton



Joined: 08 Apr 2004
Posts: 17
Location: Moscow, Russia
Hello, people

Can somebody say me, where I must search for simple programs, which use ACPI. And where I may find information about ACPI software interface. I really need your advices.
Thank you.
Post 21 Apr 2004, 12:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.