Rename PACK definition

This commit is contained in:
Rafal Kupiec 2024-05-20 15:34:15 +02:00
parent ac33b86c3d
commit 500498508e
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
3 changed files with 6 additions and 5 deletions

View File

@ -293,7 +293,7 @@ typedef struct _KTSS
ULONG64 Reserved1;
USHORT Reserved2;
USHORT IoMapBase;
} PACK KTSS, *PKTSS;
} PACKED KTSS, *PKTSS;
/* Exception frame definition */
typedef struct _KEXCEPTION_FRAME

View File

@ -164,7 +164,7 @@ typedef struct _ACPI_DESCRIPTION_HEADER
ULONG OemRevision;
UCHAR CreatorID[4];
ULONG CreatorRev;
} PACK ACPI_DESCRIPTION_HEADER, *PACPI_DESCRIPTION_HEADER;
} PACKED ACPI_DESCRIPTION_HEADER, *PACPI_DESCRIPTION_HEADER;
/* ACPI Root System Description Table Pointer structure */
typedef struct _ACPI_RSDP
@ -178,14 +178,14 @@ typedef struct _ACPI_RSDP
ULONGLONG XsdtAddress;
UCHAR XChecksum;
UCHAR Reserved[3];
} PACK ACPI_RSDP, *PACPI_RSDP;
} PACKED ACPI_RSDP, *PACPI_RSDP;
/* ACPI Root System Description Table structure */
typedef struct _ACPI_RSDT
{
ACPI_DESCRIPTION_HEADER Header;
UCHAR Entries[];
} PACK ACPI_RSDT, *PACPI_RSDT;
} PACKED ACPI_RSDT, *PACPI_RSDT;
/* Serial (COM) port initial state */
typedef struct _CPPORT

View File

@ -16,6 +16,7 @@
#define XTAPI __stdcall
#define XTCDECL __cdecl
#define XTFASTCALL __fastcall
#define XTVECTORCALL __vectorcall
#define XTINLINE __inline
#define XTASSEMBLY __attribute__((naked))
#define XTINTERRUPT __attribute__((interrupt))
@ -54,7 +55,7 @@
/* Preprocessor macros for defining an additional compiler attributes */
#define ALIGN(Alignment) __attribute__((aligned(Alignment)))
#define PACK __attribute__((packed))
#define PACKED __attribute__((packed))
#define SEGMENT(Segment) __attribute__((section(Segment)))
#define USED __attribute__((__used__))