thermosphere: debug manager wip
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user