summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordzwdz2021-09-19 21:07:57 +0200
committerdzwdz2021-09-19 21:07:57 +0200
commit45fcc12bbef511d8142cfd9a0b0f2a07edb3b8ea (patch)
tree3c1e2f6e0acd9404bc453900fdd55a992d7770c5 /src
parentbaa031ffff78e620a257377f992d0f30d4149b2d (diff)
mark run_init as _Noreturn
Diffstat (limited to 'src')
-rw-r--r--src/kernel/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index 07162b5..e96de1c 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -7,7 +7,7 @@
#include <kernel/util.h>
#include <stdint.h>
-static void run_init(struct kmain_info *info) {
+_Noreturn static void run_init(struct kmain_info *info) {
struct process *proc = process_seed();
void __user *init_base = (userptr_t)0x200000;
@@ -30,6 +30,4 @@ void kmain(struct kmain_info info) {
tty_const("loading init...");
run_init(&info);
-
- panic();
}