1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-02-17 15:45:37 -05:00

Use function "kernaux_arch_i386_hang"

This commit is contained in:
Alex Kotov 2020-11-27 19:15:02 +05:00
parent 5ddd7b6c16
commit de1cf2fb2e
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 3 additions and 9 deletions

View file

@ -12,7 +12,7 @@ CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -
OBJS = start.s.o
OBJS += main.c.o
OBJS += multiboot.c.o
OBJS += panic.c.o panic.asm.cpp.o
OBJS += panic.c.o
OBJS += paging.c.o
OBJS += page_dir.c.o

View file

@ -1,6 +0,0 @@
[GLOBAL hang]
hang:
cli
hlt
jmp hang

View file

@ -2,12 +2,12 @@
#include "logger.h"
void hang();
#include <kernaux/arch/i386.h>
void panic(const char *const s)
{
logger_fail_from("panic", s);
hang();
kernaux_arch_i386_hang();
}
void halt()