aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorYannis Huber <[email protected]>2020-06-16 15:25:51 +0200
committerRon Evans <[email protected]>2020-07-08 00:21:59 +0200
commitccc604d2e0570d14651c6aa36161479db4133b07 (patch)
tree68aedba94614e41274d3fc225141c3d5d8cafad7 /targets
parentdfab1aa717da88dfcdf8206a51b00681b0bd4a18 (diff)
downloadtinygo-ccc604d2e0570d14651c6aa36161479db4133b07.tar.gz
tinygo-ccc604d2e0570d14651c6aa36161479db4133b07.zip
riscv: fix offset in 64bit scheduler
Also keep common start.S file for 64 and 32 bit architectures.
Diffstat (limited to 'targets')
-rw-r--r--targets/riscv.json3
-rw-r--r--targets/riscv32.json2
-rw-r--r--targets/riscv64.json2
3 files changed, 5 insertions, 2 deletions
diff --git a/targets/riscv.json b/targets/riscv.json
index d78026b34..a2d4aaeb6 100644
--- a/targets/riscv.json
+++ b/targets/riscv.json
@@ -16,5 +16,8 @@
"ldflags": [
"--gc-sections"
],
+ "extra-files": [
+ "src/device/riscv/start.S"
+ ],
"gdb": "riscv64-unknown-elf-gdb"
}
diff --git a/targets/riscv32.json b/targets/riscv32.json
index 4fd0d6426..fb1bdb94f 100644
--- a/targets/riscv32.json
+++ b/targets/riscv32.json
@@ -12,6 +12,6 @@
],
"extra-files": [
"src/runtime/scheduler_tinygoriscv.S",
- "src/device/riscv/start.S"
+ "src/device/riscv/handleinterrupt32.S"
]
}
diff --git a/targets/riscv64.json b/targets/riscv64.json
index ec5cb5030..20c7f1baf 100644
--- a/targets/riscv64.json
+++ b/targets/riscv64.json
@@ -12,6 +12,6 @@
],
"extra-files": [
"src/runtime/scheduler_tinygoriscv64.S",
- "src/device/riscv/start64.S"
+ "src/device/riscv/handleinterrupt64.S"
]
}