AHCI IDENTIFY command troubles

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.
Octocontrabass
Member
Member
Posts: 5587
Joined: Mon Mar 25, 2013 7:01 pm

Re: AHCI IDENTIFY command troubles

Post by Octocontrabass »

§6.5

(edit: whoops, accidentally looked at the wrong number for the section heading)
shmx
Member
Member
Posts: 68
Joined: Sat Jan 16, 2016 10:43 am

Re: AHCI IDENTIFY command troubles

Post by shmx »

6.5.7 Bitwise shift operators
???
shmx
Member
Member
Posts: 68
Joined: Sat Jan 16, 2016 10:43 am

Re: AHCI IDENTIFY command troubles

Post by shmx »

Octocontrabass wrote:§6.5
I don't see in this section the required description. Please show a quote.
I know that may be problems with alignment (to x86 usually do not apply). But it seems like it does not refer to the language.
Octocontrabass
Member
Member
Posts: 5587
Joined: Mon Mar 25, 2013 7:01 pm

Re: AHCI IDENTIFY command troubles

Post by Octocontrabass »

An object shall have its stored value accessed only by an lvalue expression that has one of the following types:*

—a type compatible with the effective type of the object,
—a qualified version of a type compatible with the effective type of the object,
—a type that is the signed or unsigned type corresponding to the effective type of the object,
—a type that is the signed or unsigned type corresponding to a qualified version of the effective type of the object,
—an aggregate or union type that includes one of the aforementioned types among its members (including, recursively, a member of a subaggregate or contained union), or
—a character type.

*The intent of this list is to specify those circumstances in which an object may or may not be aliased.
shmx
Member
Member
Posts: 68
Joined: Sat Jan 16, 2016 10:43 am

Re: AHCI IDENTIFY command troubles

Post by shmx »

Object type is uint32_t. Access is provided via pointer to uint32_t. Aliasing with char* is correct.
What's wrong?
Post Reply