thermopshere: add "execute function" sgi

This commit is contained in:
TuxSH
2019-08-12 23:47:14 +02:00
parent 0b69407f8e
commit b2c5ef2611
5 changed files with 114 additions and 12 deletions

View File

@@ -16,6 +16,11 @@
extern const u8 __start__[];
static void testf1(void *p)
{
DEBUG("Hello from sgi 0, p=%016llx\n", p);
}
static void loadKernelViaSemihosting(void)
{
size_t len = 1<<20; // max len
@@ -80,6 +85,9 @@ void main(ExceptionStackFrame *frame)
// Test
singleStepSetNextState(frame, SingleStepState_ActivePending);
// Test
executeFunctionOnAllCores(testf1, (void *)0x1234567, true);
/*// Test
unmaskIrq();
generateSgiForAll(0);*/