ACPI poweroff

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.
palk
Posts: 16
Joined: Mon Nov 15, 2010 8:30 pm

Re: ACPI poweroff

Post by palk »

Neoncore wrote:Hello , I've tried to use this code but it causes a Page Fault (Present Memory) , my Kernel is in the Higher Half..any idea what could be causing this?
More than likely what is causing the page fault is this code piece:
// search below the 1mb mark for RSDP signature
for (addr = (unsigned int *) 0x000E0000; (int) addr<0x00100000; addr += 0x10/sizeof(addr))
{
rsdp = acpiCheckRSDPtr(addr);
if (rsdp != NULL)
return rsdp;
}
You will have to create a mapping to that range of physical memory in order to access it. And then, you will have to map each individual table (because they can be anywhere in the address space).
Neoncore
Posts: 14
Joined: Sat Jun 25, 2011 1:49 pm

Re: ACPI poweroff

Post by Neoncore »

the main problem doesn't appear to be this , but somehow , the address it gets isn't a right one , I'm using JamesM tutorial alongside higher half linking everything else works it's just when I try to enable the ACPI.
Attachments
Screenshot-ACPI.png
gonzalezmurilo
Posts: 5
Joined: Mon Jul 15, 2013 6:49 am

Re: ACPI poweroff

Post by gonzalezmurilo »

hey i need some help,
i would like to implement something like this, in my case i must turn off lcd/monitor using an acpi method, i need to execute it on ms-dos, please someone can help me?

thanks!!
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: ACPI poweroff

Post by jal »

gonzalezmurilo wrote:hey i need some help,
i would like to implement something like this, in my case i must turn off lcd/monitor using an acpi method, i need to execute it on ms-dos, please someone can help me
You'd better start a new topic and not necromancing old ones!


JAL
Locked