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:
parent
21ce3927d9
commit
33c9e5c1e4
2 changed files with 9 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue