trap: explicitly handle certain exceptions

This commit is contained in:
Michael Shaw 2024-06-13 22:51:18 -04:00
commit 4a997cec35
4 changed files with 29 additions and 0 deletions

View file

@ -27,6 +27,7 @@
genrw(rsp);
genrw(rbp);
genrw(cr2);
genrw(cr3);
genrw(ds);

8
include/kernel/trap.h Normal file
View file

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _TRAP_H_
#define _TRAP_H_
void exception(int vector, int error);
void exception_init();
#endif