From 5b9f35ec7509e169f58500b66712eafb075d0b36 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sun, 11 Oct 2009 16:46:46 +0200 Subject: Added a simple random generator --- Source/Kernel/TaskManager/Thread.class.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Kernel/TaskManager') 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", ®s); if (no == 14) { //Page fault int present = !(regs.err_code & 0x1); -- cgit v1.2.3