From 5ebc67833086eccb3c3b1708745c927d5bcfd811 Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Wed, 15 May 2024 00:47:52 +0100 Subject: add static assertions --- kernel/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kernel/main.c') 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 +#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) { -- cgit v1.2.3