Set alignment and packing properly
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-02-02 17:01:18 +01:00
parent 2e2b01742a
commit 715f875c4f
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@ typedef struct _FLOATING_SAVE_AREA
} FLOATING_SAVE_AREA, *PFLOATING_SAVE_AREA;
/* Context frame structure definition */
typedef struct ALIGN(16) _CONTEXT
typedef struct _CONTEXT
{
ULONG64 P1Home;
ULONG64 P2Home;
@ -191,7 +191,7 @@ typedef struct ALIGN(16) _CONTEXT
ULONG64 LastBranchFromRip;
ULONG64 LastExceptionToRip;
ULONG64 LastExceptionFromRip;
} CONTEXT, *PCONTEXT;
} ALIGN(16) CONTEXT, *PCONTEXT;
/* Pseudo 64-bit descriptor structure definition */
typedef struct _KDESCRIPTOR
@ -259,7 +259,7 @@ typedef struct _KTSS
ULONG64 Reserved1;
USHORT Reserved2;
USHORT IoMapBase;
} KTSS, *PKTSS;
} PACK KTSS, *PKTSS;
/* Exception frame definition */
typedef struct _KEXCEPTION_FRAME

View File

@ -51,10 +51,10 @@ typedef struct _LIST_ENTRY64
} LIST_ENTRY64, *PLIST_ENTRY64;
/* 128-bit 16-byte aligned XMM register */
typedef struct ALIGN(16) _M128
typedef struct _M128
{
ULONGLONG Low;
LONGLONG High;
} M128, *PM128;
} ALIGN(16) M128, *PM128;
#endif /* __XTDK_XTBASE_H */