EXCEPTIONS¶
Exception handler functions.
- Author
Luca Donno, Antonio Lopez, Samuele Marro, Edoardo Merli
- Version
0.2.0
- Date
2021-03-14
- Copyright
Copyright (c) 2021
Functions
-
cpu_t elapsedTime()¶
Calculates the real time elapsed since the beginning of the time slice, which was set at the last time that this process was selected by the scheduler.
- Returns
The real time elapsed since the beginning of the time slice
-
void resume()¶
Gives control back to the process that was executing before the exception, or call the scheduler if there was no process running (WAIT state).
-
void exceptionHandler()¶
Handles an exception.
- Remark
This procedure should not be called directly: if correctly configured, the processor will call it when an exception is raised.