Replace __attribute__ with a macro from types.h

This commit is contained in:
Alex
2023-04-07 05:22:14 +03:00
parent 7fa3e91a53
commit 98c137566d
22 changed files with 69 additions and 69 deletions

View File

@ -308,7 +308,7 @@ namespace CPU
uint32_t Reserved2 : 32;
};
uint32_t raw;
} __attribute__((packed)) EFER;
} __packed EFER;
// ! TODO: UNTESTED!
typedef union DR7
@ -377,7 +377,7 @@ namespace CPU
uint8_t st[8][16];
/** @brief XMM registers */
uint8_t xmm[16][16];
} __attribute__((packed));
} __packed;
/**
* @brief CPUID
@ -445,7 +445,7 @@ namespace CPU
uint32_t ApicBaseHi : 32;
};
uint64_t raw;
} __attribute__((packed)) APIC_BASE;
} __packed APIC_BASE;
typedef union
{
@ -555,7 +555,7 @@ namespace CPU
uint64_t Reserved2 : 32;
};
uint64_t raw;
} __attribute__((packed)) EFER;
} __packed EFER;
// ! TODO: UNTESTED!
typedef union DR7
@ -674,7 +674,7 @@ namespace CPU
uint8_t st[8][16];
/** @brief XMM registers */
uint8_t xmm[16][16];
} __attribute__((packed));
} __packed;
SafeFunction static inline void lgdt(void *gdt)
{