hw: remove useless function handle_invalid_excpt

ref #874
This commit is contained in:
Martin Stein 2013-10-15 17:15:30 +02:00 committed by Norman Feske
parent 059aba0916
commit 22d61c241e
2 changed files with 5 additions and 9 deletions

View File

@ -74,7 +74,7 @@ namespace Kernel
static Timer * timer() { static Timer _object; return &_object; }
static void reset_lap_time()
void reset_lap_time()
{
timer()->start_one_shot(timer()->ms_to_tics(USER_LAP_TIME_MS));
}
@ -212,12 +212,6 @@ namespace Kernel
size_t vm_size() { return sizeof(Vm); }
/**
* Handle the occurence of an unknown exception
*/
void handle_invalid_excpt() { assert(0); }
/**
* Handle an interrupt request
*/

View File

@ -39,7 +39,7 @@ namespace Kernel
unsigned core_id();
void handle_syscall(Thread * const);
void handle_interrupt(void);
void handle_invalid_excpt(void);
void reset_lap_time();
/**
* Kernel object that can be scheduled for the CPU
@ -524,7 +524,9 @@ class Kernel::Thread
handle_interrupt();
return;
default:
handle_invalid_excpt();
PERR("unknown exception");
stop();
reset_lap_time();
}
}