BarryServer : Git

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

// 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;
diff --git a/include/nucleus/task.h b/include/nucleus/task.h
index 17b5c09..1e91a33 100644
--- a/include/nucleus/task.h
+++ b/include/nucleus/task.h
@@ -104,6 +104,5 @@ void unblock_task(Task *task);
 Task *find_task(pid_t tid);
 void schedule(void);
 pid_t clone(int flags);
-int syscall_handler(int num, uintptr_t args);
 
 #endif