riscv: switch to tasks-based scheduler

This is only supported for RV32 at the moment. RV64 can be added at a
later time.
This commit is contained in:
Ayke van Laethem
2020-03-17 20:45:30 +01:00
committed by Ron Evans
parent 5d8f25a622
commit 878b62bbe8
5 changed files with 139 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@
],
"extra-files": [
"src/device/riscv/start.S",
"src/internal/task/task_stack_tinygoriscv.S",
"src/runtime/gc_riscv.S",
"src/device/riscv/handleinterrupt.S"
],
+2
View File
@@ -2,6 +2,8 @@
"inherits": ["riscv"],
"llvm-target": "riscv32--none",
"build-tags": ["tinygo.riscv32"],
"scheduler": "tasks",
"default-stack-size": 2048,
"cflags": [
"-march=rv32imac",
"-mabi=ilp32"