Rename PACK definition
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 48s
Builds / ExectOS (i686) (push) Successful in 47s

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; ULONG64 Reserved1;
USHORT Reserved2; USHORT Reserved2;
USHORT IoMapBase; USHORT IoMapBase;
} PACK KTSS, *PKTSS; } PACKED KTSS, *PKTSS;
/* Exception frame definition */ /* Exception frame definition */
typedef struct _KEXCEPTION_FRAME typedef struct _KEXCEPTION_FRAME

View File

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

View File

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