thermosphere: add TransportInterface abstraction layer

This commit is contained in:
TuxSH
2020-01-12 01:59:26 +00:00
parent 26bda4f32d
commit 3b542e749f
11 changed files with 499 additions and 66 deletions

View File

@@ -13,6 +13,7 @@
#include "watchpoints.h"
#include "timer.h"
#include "irq.h"
#include "transport_interface.h"
extern const u8 __start__[];
@@ -39,18 +40,18 @@ static void loadKernelViaSemihosting(void)
void thermosphereMain(ExceptionStackFrame *frame)
{
enableTraps();
enableBreakpointsAndWatchpoints();
timerInit();
initIrq();
if (currentCoreCtx->isBootCore) {
uartInit(DEFAULT_UART, BAUD_115200, 0);
uartSetInterruptStatus(DEFAULT_UART, DIRECTION_READ, true);
transportInterfaceInitLayer();
debugLogInit();
DEBUG("EL2: core %u reached main first!\n", currentCoreCtx->coreId);
}
enableTraps();
enableBreakpointsAndWatchpoints();
timerInit();
initBreakpoints();
initWatchpoints();