BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / d46e09a34ca8cd546f3a4312976cf3b6a5a55ccf / include / nucleus / cpu.h

// Related

Nucleus

Barry Improved context switching and interrupt handling d46e09a (3 years, 2 months ago)
diff --git a/include/nucleus/cpu.h b/include/nucleus/cpu.h
index b8293b8..b1e4cae 100644
--- a/include/nucleus/cpu.h
+++ b/include/nucleus/cpu.h
@@ -7,10 +7,13 @@ typedef unsigned int cpu_t;
 
 /* Structure for an Interrupt Frame */
 struct InterruptFrame {
-	uint32_t eip, cs, eflags;
+	uint32_t ds;
+	uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
+	uint32_t intnum, err;
+	uint32_t eip, cs, eflags, useresp, ss;
 };
 
-typedef void (*exc_handler_t)(struct InterruptFrame *, uint32_t);
+typedef void (*exc_handler_t)(struct InterruptFrame *);
 typedef void (*int_handler_t)(struct InterruptFrame *);
 
 extern int apic;