diff options
author | dzwdz | 2021-09-19 21:07:57 +0200 |
---|---|---|
committer | dzwdz | 2021-09-19 21:07:57 +0200 |
commit | 45fcc12bbef511d8142cfd9a0b0f2a07edb3b8ea (patch) | |
tree | 3c1e2f6e0acd9404bc453900fdd55a992d7770c5 | |
parent | baa031ffff78e620a257377f992d0f30d4149b2d (diff) |
mark run_init as _Noreturn
-rw-r--r-- | src/kernel/main.c | 4 |
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(); } |