Port to latest GCC and fix CD loading bug

This commit is contained in:
Jaby
2023-09-03 01:57:28 +02:00
committed by Jaby
parent 7609bc15f4
commit f37f4bd0b0
12 changed files with 83 additions and 67 deletions

View File

@@ -45,12 +45,14 @@ enum InterruptVerifierResult {
typedef InterruptVerifierResult (*InterruptVerifier)();
typedef uint32_t (*InterruptHandler)(uint32_t);
struct __no_align InterrupCallback {
#pragma pack(push, 1)
struct InterrupCallback {
struct InterrupCallback* next;
InterruptHandler handler_function;
InterruptVerifier verifier_function;
uint32_t notUsed;
};
#pragma pack(pop)
#ifdef __cplusplus
#define __syscall_function_cast(table, ...) reinterpret_cast<__VA_ARGS__>(table)