diff options
author | Alexis211 <alexis211@gmail.com> | 2009-09-06 12:35:07 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-09-06 12:35:07 +0200 |
commit | 6e83d6c7b9fc36f7e7826451899c564a34a2c761 (patch) | |
tree | bdb59ac4e422d69c9b60e1645eb2139f9a8453a3 /Source/Kernel/TaskManager/Thread.class.h | |
parent | 7f6511e97e378d5853ec6b2edc6e330fb09e5132 (diff) | |
download | Melon-6e83d6c7b9fc36f7e7826451899c564a34a2c761.tar.gz Melon-6e83d6c7b9fc36f7e7826451899c564a34a2c761.zip |
Ok, exception handling happens in Thread::.
Diffstat (limited to 'Source/Kernel/TaskManager/Thread.class.h')
-rw-r--r-- | Source/Kernel/TaskManager/Thread.class.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Kernel/TaskManager/Thread.class.h b/Source/Kernel/TaskManager/Thread.class.h index f8ab3ff..7d7917b 100644 --- a/Source/Kernel/TaskManager/Thread.class.h +++ b/Source/Kernel/TaskManager/Thread.class.h @@ -2,6 +2,7 @@ #define DEF_THREAD_CLASS_H #include <TaskManager/Process.class.h> +#include <SyscallManager/IDT.ns.h> #define T_ZOMBIE 0 #define T_RUNNING 1 @@ -33,6 +34,7 @@ class Thread { Thread(Process* process, u32int (*entry_point)()); ~Thread(); void finish(u32int errcode); //Called by run() when thread returns, and by exception handler. Can also be called by the thread itself + void handleException(registers_t regs, int no); void setState(u32int esp, u32int ebp, u32int eip); u32int getEsp(); |