summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/arch/i386/multiboot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/arch/i386/multiboot.h b/src/kernel/arch/i386/multiboot.h
index f030247..b780f91 100644
--- a/src/kernel/arch/i386/multiboot.h
+++ b/src/kernel/arch/i386/multiboot.h
@@ -1,7 +1,8 @@
#pragma once
#include <stdint.h>
-// TODO assert that pointers have 4 bytes.
+_Static_assert(sizeof(void*) == 4,
+ "this code assumes that pointers have 4 bytes");
struct multiboot_mod {
void *start;