diff options
author | Aiden Gall <aiden@aidengall.xyz> | 2024-05-15 00:47:52 +0100 |
---|---|---|
committer | Aiden Gall <aiden@aidengall.xyz> | 2024-05-15 00:48:53 +0100 |
commit | 5ebc67833086eccb3c3b1708745c927d5bcfd811 (patch) | |
tree | ec3347e5bcbccebcba8e9e121d22f1d74c82762f /kernel/main.c | |
parent | d28457e416f7ba7c903c4db6bff73fb87f77e3e6 (diff) |
add static assertions
Diffstat (limited to 'kernel/main.c')
-rw-r--r-- | kernel/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c index 8c120e9..0633254 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -1,4 +1,5 @@ #include <stdint.h> +#include "assert.h" #include "util.h" #define VGA_WIDTH 80 @@ -11,6 +12,8 @@ struct e820_entry { uint32_t ext_attr; }; +STATIC_ASSERT(sizeof(struct e820_entry) == 24, e820_entry); + static uint64_t * memsetu64(uint64_t *const dst, const uint64_t c, const uint64_t n) { |