aboutsummaryrefslogtreecommitdiffstats
path: root/src-riscv/boot.S
diff options
context:
space:
mode:
Diffstat (limited to 'src-riscv/boot.S')
-rw-r--r--src-riscv/boot.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/src-riscv/boot.S b/src-riscv/boot.S
new file mode 100644
index 0000000..d31e5fe
--- /dev/null
+++ b/src-riscv/boot.S
@@ -0,0 +1,11 @@
+ .global _start
+ .section .text.init
+_start:
+ .option push
+ .option norelax
+ la gp, __global_pointer$
+ .option pop
+ la sp, _stack_top
+
+ csrr a0, mhartid
+ tail main