thermosphere: handle physical IRQs

This commit is contained in:
TuxSH
2019-08-11 00:56:49 +02:00
parent 62fd2cd94d
commit c34df08ed9
10 changed files with 267 additions and 12 deletions

View File

@@ -12,6 +12,8 @@
#include "breakpoints.h"
#include "watchpoints.h"
#include "irq.h"
extern const u8 __start__[];
static void loadKernelViaSemihosting(void)
@@ -41,6 +43,7 @@ void main(ExceptionStackFrame *frame)
{
enableTraps();
enableBreakpointsAndWatchpoints();
initIrq();
if (currentCoreCtx->isBootCore) {
uartInit(115200);
@@ -74,4 +77,8 @@ void main(ExceptionStackFrame *frame)
// Test
singleStepSetNextState(frame, SingleStepState_ActivePending);
// Test
unmaskIrq();
generateSgiForAll(0);
}