summaryrefslogtreecommitdiff
path: root/kernel/lib.h
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-06-02 00:26:57 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-06-02 00:26:57 +0200
commit45f420a338ea02225bb8a98c9aca5eed8d6a23ae (patch)
tree97fdb1c8e81ba79b101b928158e5e37fa938c8f3 /kernel/lib.h
Initial commit
Diffstat (limited to 'kernel/lib.h')
-rw-r--r--kernel/lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/lib.h b/kernel/lib.h
new file mode 100644
index 0000000..c325dfd
--- /dev/null
+++ b/kernel/lib.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#define NULL (0)
+
+typedef unsigned int uint32_t;
+typedef int int32_t;
+
+static_assert(sizeof(uint32_t) == 4);
+
+void panic(const char*);