reformat
This commit is contained in:
@ -45,7 +45,7 @@ private:
|
|||||||
|
|
||||||
void dump_free_memory(tree_block_t* node);
|
void dump_free_memory(tree_block_t* node);
|
||||||
|
|
||||||
// NOTE: Would be nice to have this stuff somewhere else for general use,
|
// NOTE: Would be nice to have this stuff somewhere else for general use (scheduling?)
|
||||||
// but that would require different rbt_node/dll_node structures.
|
// but that would require different rbt_node/dll_node structures.
|
||||||
// If I need this again later I should move it.
|
// If I need this again later I should move it.
|
||||||
void rbt_rot_l(tree_block_t* x);
|
void rbt_rot_l(tree_block_t* x);
|
||||||
|
|||||||
@ -163,7 +163,7 @@ void bs_dump(unsigned int exceptionNr) {
|
|||||||
unsigned int has_error_code = 0;
|
unsigned int has_error_code = 0;
|
||||||
|
|
||||||
bs_clear();
|
bs_clear();
|
||||||
bs_print_string("HHUos crashed with Exception\0");
|
bs_print_string("HHUos crashed with Exception \0");
|
||||||
|
|
||||||
// Exception mit Error-Code?
|
// Exception mit Error-Code?
|
||||||
if ((exceptionNr >= 8 && exceptionNr <= 14) || exceptionNr == 17 || exceptionNr == 30) {
|
if ((exceptionNr >= 8 && exceptionNr <= 14) || exceptionNr == 17 || exceptionNr == 30) {
|
||||||
|
|||||||
@ -10,12 +10,11 @@
|
|||||||
* *
|
* *
|
||||||
* Autor: Michael Schoettner, 31.8.2016 *
|
* Autor: Michael Schoettner, 31.8.2016 *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
#include "kernel/interrupts/IntDispatcher.h"
|
||||||
#include "kernel/CPU.h"
|
#include "kernel/CPU.h"
|
||||||
#include "kernel/Globals.h"
|
#include "kernel/Globals.h"
|
||||||
#include "kernel/interrupts/IntDispatcher.h"
|
|
||||||
#include "kernel/interrupts/Bluescreen.h"
|
#include "kernel/interrupts/Bluescreen.h"
|
||||||
|
|
||||||
|
|
||||||
extern "C" void int_disp(unsigned int slot);
|
extern "C" void int_disp(unsigned int slot);
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
@ -35,17 +34,16 @@ void int_disp(unsigned int vector) {
|
|||||||
/* hier muss Code eingefuegt werden */
|
/* hier muss Code eingefuegt werden */
|
||||||
if (vector < 32) {
|
if (vector < 32) {
|
||||||
bs_dump(vector);
|
bs_dump(vector);
|
||||||
cpu.halt ();
|
cpu.halt();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (intdis.report (vector) < 0) {
|
if (intdis.report(vector) < 0) {
|
||||||
kout << "Panic: unexpected interrupt " << vector;
|
kout << "Panic: unexpected interrupt " << vector;
|
||||||
kout << " - processor halted." << endl;
|
kout << " - processor halted." << endl;
|
||||||
cpu.halt ();
|
cpu.halt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* Konstruktor: IntDispatcher::IntDispatcher *
|
* Konstruktor: IntDispatcher::IntDispatcher *
|
||||||
*---------------------------------------------------------------------------*
|
*---------------------------------------------------------------------------*
|
||||||
|
|||||||
Reference in New Issue
Block a user