diff options
Diffstat (limited to 'arch/tile/include/hv/hypervisor.h')
-rw-r--r-- | arch/tile/include/hv/hypervisor.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/tile/include/hv/hypervisor.h b/arch/tile/include/hv/hypervisor.h index 793123e116fd..df74223944b5 100644 --- a/arch/tile/include/hv/hypervisor.h +++ b/arch/tile/include/hv/hypervisor.h | |||
@@ -494,11 +494,16 @@ int hv_confstr(HV_ConfstrQuery query, HV_VirtAddr buf, int len); | |||
494 | /** Tile coordinate */ | 494 | /** Tile coordinate */ |
495 | typedef struct | 495 | typedef struct |
496 | { | 496 | { |
497 | #ifndef __BIG_ENDIAN__ | ||
497 | /** X coordinate, relative to supervisor's top-left coordinate */ | 498 | /** X coordinate, relative to supervisor's top-left coordinate */ |
498 | int x; | 499 | int x; |
499 | 500 | ||
500 | /** Y coordinate, relative to supervisor's top-left coordinate */ | 501 | /** Y coordinate, relative to supervisor's top-left coordinate */ |
501 | int y; | 502 | int y; |
503 | #else | ||
504 | int y; | ||
505 | int x; | ||
506 | #endif | ||
502 | } HV_Coord; | 507 | } HV_Coord; |
503 | 508 | ||
504 | 509 | ||
@@ -986,8 +991,13 @@ HV_VirtAddrRange hv_inquire_virtual(int idx); | |||
986 | /** A range of ASID values. */ | 991 | /** A range of ASID values. */ |
987 | typedef struct | 992 | typedef struct |
988 | { | 993 | { |
994 | #ifndef __BIG_ENDIAN__ | ||
989 | HV_ASID start; /**< First ASID in the range. */ | 995 | HV_ASID start; /**< First ASID in the range. */ |
990 | unsigned int size; /**< Number of ASIDs. Zero for an invalid range. */ | 996 | unsigned int size; /**< Number of ASIDs. Zero for an invalid range. */ |
997 | #else | ||
998 | unsigned int size; /**< Number of ASIDs. Zero for an invalid range. */ | ||
999 | HV_ASID start; /**< First ASID in the range. */ | ||
1000 | #endif | ||
991 | } HV_ASIDRange; | 1001 | } HV_ASIDRange; |
992 | 1002 | ||
993 | /** Returns information about a range of ASIDs. | 1003 | /** Returns information about a range of ASIDs. |
@@ -1308,6 +1318,7 @@ typedef enum | |||
1308 | /** Message recipient. */ | 1318 | /** Message recipient. */ |
1309 | typedef struct | 1319 | typedef struct |
1310 | { | 1320 | { |
1321 | #ifndef __BIG_ENDIAN__ | ||
1311 | /** X coordinate, relative to supervisor's top-left coordinate */ | 1322 | /** X coordinate, relative to supervisor's top-left coordinate */ |
1312 | unsigned int x:11; | 1323 | unsigned int x:11; |
1313 | 1324 | ||
@@ -1316,6 +1327,11 @@ typedef struct | |||
1316 | 1327 | ||
1317 | /** Status of this recipient */ | 1328 | /** Status of this recipient */ |
1318 | HV_Recip_State state:10; | 1329 | HV_Recip_State state:10; |
1330 | #else //__BIG_ENDIAN__ | ||
1331 | HV_Recip_State state:10; | ||
1332 | unsigned int y:11; | ||
1333 | unsigned int x:11; | ||
1334 | #endif | ||
1319 | } HV_Recipient; | 1335 | } HV_Recipient; |
1320 | 1336 | ||
1321 | /** Send a message to a set of recipients. | 1337 | /** Send a message to a set of recipients. |