NCCH/Extended Header: Difference between revisions
the wiki is not a C primer |
|||
Line 212: | Line 212: | ||
==== Flag0 ==== | ==== Flag0 ==== | ||
{| class="wikitable" border="1" | |||
|- | |||
! Bits | |||
! Description | |||
|- | |||
| 0-1 | |||
| Ideal Processor | |||
|- | |||
| 2-3 | |||
| Affinity Mask | |||
|- | |||
| 4-7 | |||
| System Mode | |||
|} | |||
In the exheader data, the IdealProcessor field is a bit-index, while in the accessdesc the IdealProcessor field is a bitmask. When the bit specified by the exheader field is not set in the accessdesc field, an error is returned. "if((1<<exheaderval) & accessdescval == 0)return error" | In the exheader data, the IdealProcessor field is a bit-index, while in the accessdesc the IdealProcessor field is a bitmask. When the bit specified by the exheader field is not set in the accessdesc field, an error is returned. "if((1<<exheaderval) & accessdescval == 0)return error" | ||
Line 226: | Line 234: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! | ! Bits | ||
! Description | ! Description | ||
|- | |- |