From 0c4eb964b015961e3c90e45ef498f6c7f89eddba Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 25 Oct 2022 12:20:32 -0400 Subject: convert to gd32f303 (stm32f103) bluepill variant --- src-riscv/boot.S | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src-riscv/boot.S (limited to 'src-riscv/boot.S') 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 -- cgit v1.2.3