Enable CPU exception handling w/ IDT & TSS (#640)

This commit is contained in:
tkchia 2022-09-30 05:43:08 +08:00 committed by GitHub
parent 09811e739f
commit bc8532688b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 231 additions and 7 deletions

View file

@ -28,6 +28,10 @@
#include "libc/runtime/internal.h"
#include "libc/runtime/runtime.h"
#if SupportsMetal()
STATIC_YOINK("_idt");
#endif
/**
* Aborts process after printing a backtrace.
*