diff options
Diffstat (limited to 'src/boot.S')
-rw-r--r-- | src/boot.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/boot.S b/src/boot.S new file mode 100644 index 0000000..d31e5fe --- /dev/null +++ b/src/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 |