OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Apr 28, 2024 1:19 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How to properly initialize ACPICA
PostPosted: Thu Jul 20, 2023 3:57 pm 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
ACPICA works fine on vms, but it halts on real hardware.

Is there anything wrong with my ACPI Initialization.

https://github.com/NXTdevosc1/acpica/bl ... main.c#L48


Top
 Profile  
 
 Post subject: Re: How to properly initialize ACPICA
PostPosted: Thu Jul 20, 2023 8:05 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
devc1 wrote:
it halts

Where does it halt?


Top
 Profile  
 
 Post subject: Re: How to properly initialize ACPICA
PostPosted: Fri Jul 21, 2023 5:37 am 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
Wait actually it halted before, the OS still doesnt fully work on real hardware but now the problem isnt in ACPICA as I did a 10 color test because i still do not debug directly in the frame buffer through writing text.

And ACPICA seems to work fine, i need to investigate other drivers.

This is the 10 color test if you wonder:

https://ibb.co/KXV1c2j


Last edited by devc1 on Fri Jul 21, 2023 7:27 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: How to properly initialize ACPICA
PostPosted: Fri Jul 21, 2023 6:04 am 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
Sorry, I thought it was ACPICA problem because it was before I unmap the 0 page and discover some bugs.
The ACPICA driver works fine, but it gives a page fault after the driver is ran so it may be the kernel or some other driver. I will see about that, I think Ill keep working on vms until I finish the drivers then after making the 3D driver and font driver i will just display logs on the screen and see whats the problem.

For now, thanks and sorry for wasting your times.

Actually I quite didn't figure out how to use acpi to see if there is an RTC and how to see PCI Routing table because i will need it in EHCI.


Top
 Profile  
 
 Post subject: Re: How to properly initialize ACPICA
PostPosted: Sat Jul 22, 2023 5:28 pm 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 403
devc1 wrote:
For now, thanks and sorry for wasting your times.


Remember, sometimes just writing it down makes you think about it potentially different. The action of asking for help sometimes just gives you insight.


Top
 Profile  
 
 Post subject: Re: How to properly initialize ACPICA
PostPosted: Sun Jul 23, 2023 8:18 am 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
Yeah it always does. I'm feeling a bit rude in this forum because most of the time I get the answer myself just by writing a question lol.

Let's change it to this:
Quote:
Actually I quite didn't figure out how to use acpi to see if there is an RTC and how to see PCI Routing table because i will need it in EHCI.


Top
 Profile  
 
 Post subject: Re: How to properly initialize ACPICA
PostPosted: Sun Jul 23, 2023 11:37 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
devc1 wrote:
how to use acpi to see if there is an RTC

Enumerate the ACPI namespace. An RTC device might have the PnP ID ACPI000E, PNP0B00, PNP0B01, or PNP0B02 depending on how it's meant to be accessed. If you find none of these devices, check if the FADT says you can probe for a legacy RTC.

Also, UEFI provides a runtime service for accessing the RTC.

devc1 wrote:
how to see PCI Routing table

Do what the ACPI spec says to do.


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

All times are UTC - 6 hours


Who is online

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