From 9566dac198f685ef947d82facee0be182a77495e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jul 2021 18:27:47 +0200 Subject: implement basic kernel panics --- platform/asm.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 platform/asm.h (limited to 'platform/asm.h') diff --git a/platform/asm.h b/platform/asm.h new file mode 100644 index 0000000..6f72617 --- /dev/null +++ b/platform/asm.h @@ -0,0 +1,9 @@ +#pragma once + +// boot.s +__attribute__((noreturn)) +void halt_cpu(); + +// sysenter.c +void sysexit(void (*fun)(), void *stack_top); +void sysenter_setup(); -- cgit v1.2.3