1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00

Try to get registers

This commit is contained in:
Braiden Vasco 2017-11-01 06:29:53 +00:00
parent 21ce3927d9
commit 33c9e5c1e4
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,5 @@
run: all
qemu-system-i386 -kernel src/kernel
qemu-system-i386 -kernel src/kernel -d guest_errors
all:
make all -C src

View file

@ -1,5 +1,13 @@
#include "logger.h"
struct IsrRegisters {
unsigned int ds; // Data segment selector
unsigned int edi, esi, ebp, esp, ebx, edx, ecx, eax; // Pushed by pusha.
unsigned int int_no, err_code; // Interrupt number and error code (if applicable)
unsigned int eip, cs, eflags, useresp, ss; // Pushed by the processor automatically.
};
// void isr(struct IsrRegisters regs)
void isr()
{
logger_warn("ISR.");