diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-04-12 15:10:16 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-04-12 15:10:16 +0000 |
| commit | ef1166f6e83d72df360a6dfc2f6643d826ce07ba (patch) | |
| tree | 1363fee07ae473b2bf81bb863792e58b1d53bb90 /kernel/entry_efi.c | |
| parent | ce2c1768fc9c0537136ff0af563766e23f2e9355 (diff) | |
panic() and halt() now in kernel private interface
Diffstat (limited to 'kernel/entry_efi.c')
| -rw-r--r-- | kernel/entry_efi.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/kernel/entry_efi.c b/kernel/entry_efi.c index 7d8e058..f4eeb9c 100644 --- a/kernel/entry_efi.c +++ b/kernel/entry_efi.c @@ -10,8 +10,7 @@ #include "serial.h" #include "kprint.h" #include "memory.h" - -static noreturn void hang(void); +#include "panic.h" static void efi_memory_init(struct efi_memory_map_data *map) { @@ -65,12 +64,5 @@ noreturn void kernel_entry(struct efi_boot_data *data) serial_init(); kputs("<hacker voice> i'm in\r\n"); efi_memory_init(data->memory_map); - hang(); + halt(); } - -static noreturn void hang(void) -{ - __asm__ ("cli\n\t"); - while (true) __asm__ ("hlt\n\t"); -} - |
