thermosphere: debug manager wip

This commit is contained in:
TuxSH
2020-01-27 00:46:00 +00:00
parent f69ef02096
commit d7ffcfc5d5
8 changed files with 183 additions and 118 deletions

View File

@@ -57,7 +57,7 @@ static void loadKernelViaSemihosting(void)
#include "platform/uart.h"
#include "debug_pause.h"
#include "debug_manager.h"
typedef struct TestCtx {
char buf[512+1];
} TestCtx;
@@ -67,7 +67,7 @@ static TestCtx g_testCtx;
size_t testReceiveCallback(TransportInterface *iface, void *p)
{
TestCtx *ctx = (TestCtx *)p;
debugPauseCores(BIT(0));
debugManagerPauseCores(BIT(0));
return transportInterfaceReadDataUntil(iface, ctx->buf, 512, '\r');
}
@@ -75,7 +75,7 @@ void testProcessDataCallback(TransportInterface *iface, void *p, size_t sz)
{
(void)iface;
(void)sz;
debugUnpauseCores(BIT(0), BIT(0));
debugManagerUnpauseCores(BIT(0), BIT(0));
TestCtx *ctx = (TestCtx *)p;
DEBUG("EL2 [core %u]: you typed: %s\n", currentCoreCtx->coreId, ctx->buf);
}