OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Apr 29, 2024 7:45 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Alignment of XSDT table pointers
PostPosted: Thu Sep 07, 2023 11:14 am 
Offline

Joined: Tue Nov 08, 2022 6:30 pm
Posts: 2
I'm having the same problem as here: viewtopic.php?f=1&t=30288

I found that if I pack the XSDT structure header and set the alignment of the following 64-bit pointers to 4 rather than the default 8, then I get the correct 64-bit pointer values to read the pointed-to tables (so table entry 0 is at offset 36 rather than 40 from the beginning of the XSDT).

With a quick google search, https://github.com/tianocore/edk2/blob/ ... Protocol.c seems to corroborate that the XSDT pointers are indeed not aligned to 8-byte boundaries.

I tried to follow the ACPI spec link on https://wiki.osdev.org/XSDT but that appears to be dead.

Is it known that these pointers are not 8-byte aligned? If so, can https://wiki.osdev.org/XSDT be updated to clarify this? I don't have edit permissions for the wiki.


Top
 Profile  
 
 Post subject: Re: Alignment of XSDT table pointers
PostPosted: Mon Sep 11, 2023 11:54 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
holtrop wrote:
I tried to follow the ACPI spec link on https://wiki.osdev.org/XSDT but that appears to be dead.

The ACPI spec is here now.

holtrop wrote:
Is it known that these pointers are not 8-byte aligned?

I just checked the ACPI spec, and yes, that's what it says.

holtrop wrote:
I don't have edit permissions for the wiki.

You can give yourself edit permissions.


Top
 Profile  
 
 Post subject: Re: Alignment of XSDT table pointers
PostPosted: Sun Sep 17, 2023 5:54 am 
Offline

Joined: Tue Nov 08, 2022 6:30 pm
Posts: 2
Thank you for the confirmation as well as the updated ACPI specification link and note about the wiki. I have joined the wiki group and updated the XSDT page with the updated ACPI specification link and a note about the pointer alignment.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], suspectedowl and 21 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