[SOLVED] Is using bios-e820 enough to locate ACPI ?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
wichtounet
Member
Member
Posts: 90
Joined: Fri Nov 01, 2013 4:05 pm
Location: Fribourg, Switzerland
Contact:

[SOLVED] Is using bios-e820 enough to locate ACPI ?

Post by wichtounet »

Hi,

I'm working on ACPI support in my OS right now and I've got a simple question.

I'm using the technique described here (http://forum.osdev.org/viewtopic.php?t=16990) to find the RSDTPtr, but the address I found is exactly what I have in the memory map given by e820 from BIOS.

Wouldn't it be enough in practice to use the e820 memory map to find ACPI ? Or are there some limitations in practice ?

Thanks
Last edited by wichtounet on Sat Dec 07, 2013 1:24 pm, edited 1 time in total.
Thor Operating System: C++ 64 bits OS: https://github.com/wichtounet/thor-os
Good osdeving!
jnc100
Member
Member
Posts: 775
Joined: Mon Apr 09, 2007 12:10 pm
Location: London, UK
Contact:

Re: Is using bios-e820 enough to locate ACPI ?

Post by jnc100 »

In short no, it isn't. If it works on your particular machine/emulator then that is by pure luck only and you cannot guarantee it to work on others. Also, I'd strongly advise against using the shutdown code provided in that post you reference as it is seriously dependent on a particular layout of the particular AML code for the shutdown object.

Regards,
John.
User avatar
wichtounet
Member
Member
Posts: 90
Joined: Fri Nov 01, 2013 4:05 pm
Location: Fribourg, Switzerland
Contact:

Re: Is using bios-e820 enough to locate ACPI ?

Post by wichtounet »

Thanks for the answer.
jnc100 wrote:In short no, it isn't. If it works on your particular machine/emulator then that is by pure luck only and you cannot guarantee it to work on others.
Ok, so I won't do that :)
jnc100 wrote:Also, I'd strongly advise against using the shutdown code provided in that post you reference as it is seriously dependent on a particular layout of the particular AML code for the shutdown object.
Yes, I saw that from the comments. As it seems to work on emulators well enough, I will still use it until my kernel is ready for ACPICA. But it is only temporary ;)

Thanks
Thor Operating System: C++ 64 bits OS: https://github.com/wichtounet/thor-os
Good osdeving!
Post Reply