summaryrefslogtreecommitdiff
path: root/Source/Kernel/TaskManager
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-11 16:46:46 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-11 16:46:46 +0200
commit5b9f35ec7509e169f58500b66712eafb075d0b36 (patch)
tree64100c0535b9ad09a63d9900e886da6982818f20 /Source/Kernel/TaskManager
parent378518140711bf19a80218711a018e8fd28d3ca7 (diff)
downloadMelon-5b9f35ec7509e169f58500b66712eafb075d0b36.tar.gz
Melon-5b9f35ec7509e169f58500b66712eafb075d0b36.zip
Added a simple random generator
Diffstat (limited to 'Source/Kernel/TaskManager')
-rw-r--r--Source/Kernel/TaskManager/Thread.class.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Kernel/TaskManager/Thread.class.cpp b/Source/Kernel/TaskManager/Thread.class.cpp
index 93a2cd3..072a505 100644
--- a/Source/Kernel/TaskManager/Thread.class.cpp
+++ b/Source/Kernel/TaskManager/Thread.class.cpp
@@ -88,6 +88,7 @@ void Thread::handleException(registers_t regs, int no) {
*(m_process->m_vt) << "\nUnhandled exception " << (s32int)no << " at " << (u32int)regs.cs << ":" <<
(u32int)regs.eip << "\n:: " << exceptions[no];
+ if (m_isKernel) PANIC_DUMP("Exception in kernel thread", &regs);
if (no == 14) { //Page fault
int present = !(regs.err_code & 0x1);