add vorgabe08
This commit is contained in:
@ -10,9 +10,11 @@
|
||||
* *
|
||||
* Autor: Michael Schoettner, 31.8.2016 *
|
||||
*****************************************************************************/
|
||||
#include "kernel/interrupts/IntDispatcher.h"
|
||||
#include "kernel/CPU.h"
|
||||
#include "kernel/Globals.h"
|
||||
#include "kernel/interrupts/IntDispatcher.h"
|
||||
#include "kernel/interrupts/Bluescreen.h"
|
||||
|
||||
|
||||
extern "C" void int_disp(unsigned int slot);
|
||||
|
||||
@ -31,11 +33,19 @@ extern "C" void int_disp(unsigned int slot);
|
||||
void int_disp(unsigned int vector) {
|
||||
|
||||
/* hier muss Code eingefuegt werden */
|
||||
if (vector < 32) {
|
||||
bs_dump(vector);
|
||||
cpu.halt ();
|
||||
}
|
||||
|
||||
// kout << "Ein Interrupt ist aufgetreten (vector: " << vector << ")" << endl;
|
||||
intdis.report(vector);
|
||||
if (intdis.report (vector) < 0) {
|
||||
kout << "Panic: unexpected interrupt " << vector;
|
||||
kout << " - processor halted." << endl;
|
||||
cpu.halt ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Konstruktor: IntDispatcher::IntDispatcher *
|
||||
*---------------------------------------------------------------------------*
|
||||
|
||||
Reference in New Issue
Block a user