Add task creation and fix Task_yield procedure

This commit is contained in:
2020-01-21 11:02:38 +01:00
parent 26f05b04d7
commit 85b0df56bb
7 changed files with 73 additions and 13 deletions
+11
View File
@@ -122,6 +122,17 @@ AArch64_memzero:
die:
b die
.globl AArch64_startTask
AArch64_startTask:
bl Task_unlockScheduler
blr x1
hang:
/* todo: implement task exit here */
WFE
b hang
.globl AArch64_switchContext
AArch64_switchContext:
/* Save current task context */
+3
View File
@@ -43,6 +43,9 @@ AArch64_disableIRQ(void);
extern void
AArch64_memzero(void *addr, unsigned long size);
extern void
AArch64_startTask(void *arg, void *callback);
extern void
AArch64_switchContext(void *currentTask, void *nextTask);