aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot.S
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-08-03 19:05:54 -0400
committerBrian Cully <bjc@kublai.com>2022-08-03 19:05:54 -0400
commitd04d8f629ccd1d80b1dae4f3588b397dcebd1bd4 (patch)
tree918b537b77af457c6d808ec7c2e1f6e0189d38dc /src/boot.S
parent5062ac0818f07bfe07714039c46018172a79ee76 (diff)
downloadluchie-d04d8f629ccd1d80b1dae4f3588b397dcebd1bd4.tar.gz
luchie-d04d8f629ccd1d80b1dae4f3588b397dcebd1bd4.zip
Get rid of nightly features by using ‘global_asm’.
Now compiles and runs on stable.
Diffstat (limited to 'src/boot.S')
-rw-r--r--src/boot.S11
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