OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:10 am

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: ACPI poweroff
PostPosted: Mon Aug 20, 2012 12:10 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: ACPI poweroff
PostPosted: Thu Aug 30, 2012 11:48 am 
Offline

Joined: Sat Jun 25, 2011 1:49 pm
Posts: 14
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
Screenshot-ACPI.png [ 22.23 KiB | Viewed 3583 times ]
Top
 Profile  
 
 Post subject: Re: ACPI poweroff
PostPosted: Mon Jul 15, 2013 6:52 am 
Offline

Joined: Mon Jul 15, 2013 6:49 am
Posts: 5
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!!


Top
 Profile  
 
 Post subject: Re: ACPI poweroff
PostPosted: Mon Jul 15, 2013 7:02 am 
Offline
Member
Member

Joined: Wed Oct 31, 2007 9:09 am
Posts: 1385
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 34 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 6 hours


Who is online

Users browsing this forum: SemrushBot [Bot] and 65 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