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

@@ -17,20 +17,23 @@
#pragma once
#include "utils.h"
#include "barrier.h"
#include "execute_function.h"
typedef struct CoreCtx {
u64 kernelArgument; // @0x00
uintptr_t kernelEntrypoint; // @0x08
u8 *crashStack; // @0x10
u64 scratch; // @0x18
u32 coreId; // @0x20
u8 gicInterfaceId; // @0x24
bool isBootCore; // @0x25
bool warmboot; // @0x26
u64 kernelArgument; // @0x00
uintptr_t kernelEntrypoint; // @0x08
u8 *crashStack; // @0x10
u64 scratch; // @0x18
u32 coreId; // @0x20
u8 gicInterfaceId; // @0x24
bool isBootCore; // @0x25
bool warmboot; // @0x26
// "Execute function"
void *asyncFunctionArgs; // @0x28
Barrier asyncFunctionBarrier; // @0x30
ExecutedFunction executedFunction; // @0x28
void *executedFunctionArgs; // @0x30
Barrier executedFunctionBarrier; // @0x38
bool executedFunctionSync; // @0x3C
} CoreCtx;
extern CoreCtx g_coreCtxs[4];