Move IRQ logic into callback; Cleanup code

This commit is contained in:
2024-06-19 19:16:05 +02:00
parent 8bda21f045
commit 5a137f9526
8 changed files with 34 additions and 52 deletions

View File

@@ -35,9 +35,10 @@ namespace JabyEngine {
extern Thread::Handle thread_handle;
extern uint32_t stack[StackSize];
void routine(uint32_t irq);
static void execute(uint32_t parm) {
execute_callback(CD::thread_handle, parm);
static void execute(uint32_t irq) {
execute_callback(CD::thread_handle, irq);
}
static uint32_t resume() {