thermosphere: add breakpoint/watchpoint enable/reset code

This commit is contained in:
TuxSH
2019-08-05 23:49:25 +02:00
parent a3da478089
commit 3649b94b5d
10 changed files with 157 additions and 5 deletions

View File

@@ -9,6 +9,8 @@
#include "sysreg.h"
#include "exceptions.h"
#include "single_step.h"
#include "breakpoints.h"
#include "watchpoints.h"
extern const u8 __start__[];
@@ -38,6 +40,8 @@ static void loadKernelViaSemihosting(void)
void main(ExceptionStackFrame *frame)
{
enableTraps();
enableAndResetBreakpoints();
enableAndResetWatchpoints();
if (currentCoreCtx->isBootCore) {
uartInit(115200);
@@ -63,5 +67,6 @@ void main(ExceptionStackFrame *frame)
frame->elr_el2 = currentCoreCtx->kernelEntrypoint;
frame->x[0] = currentCoreCtx->kernelArgument;
// Test
singleStepSetNextState(frame, SingleStepState_ActivePending);
}