aboutsummaryrefslogtreecommitdiffstats
path: root/src-riscv/boot.S
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-10-25 12:20:32 -0400
committerBrian Cully <bjc@kublai.com>2022-10-25 12:20:32 -0400
commit0c4eb964b015961e3c90e45ef498f6c7f89eddba (patch)
treeb0cc3b540e7123b45da044c73d1f47f98ce010ef /src-riscv/boot.S
parent0f80c612d59c855a99073e583db339fe6a42b883 (diff)
downloadluchie-0c4eb964b015961e3c90e45ef498f6c7f89eddba.tar.gz
luchie-0c4eb964b015961e3c90e45ef498f6c7f89eddba.zip
convert to gd32f303 (stm32f103) bluepill variant
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