summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/pnc.h
diff options
context:
space:
mode:
authorMarvin Borner2021-07-12 18:14:44 +0200
committerMarvin Borner2021-07-12 18:15:29 +0200
commit1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a (patch)
tree593af3e3ec78795bb47553f492db07fb7e87e373 /src/loader/inc/pnc.h
parentd414d2f6f46bd425d727af5baae3e2658d6e1384 (diff)
Renamed files to match presentation
Diffstat (limited to 'src/loader/inc/pnc.h')
-rw-r--r--src/loader/inc/pnc.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/loader/inc/pnc.h b/src/loader/inc/pnc.h
deleted file mode 100644
index 73819c9..0000000
--- a/src/loader/inc/pnc.h
+++ /dev/null
@@ -1,24 +0,0 @@
-// MIT License, Copyright (c) 2021 Marvin Borner
-
-#ifndef PNC_H
-#define PNC_H
-
-#include <log.h>
-
-#define panic(reason) \
- { \
- log("%s:%d: %s: Panic: %s", __FILE__, __LINE__, __func__, (reason)); \
- while (1) \
- __asm__ volatile("cli\nhlt"); \
- }
-
-#define assert(exp) \
- { \
- if (!(exp)) \
- panic("Assertion '" #exp "' failed\n"); \
- }
-
-// This shouldn't return, therefore this declaration belongs here (kinda)
-void jmp_kernel(void *kernel, int args, ...);
-
-#endif