From 45f420a338ea02225bb8a98c9aca5eed8d6a23ae Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sun, 2 Jun 2024 00:26:57 +0200 Subject: Initial commit --- kernel/boot.s | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 kernel/boot.s (limited to 'kernel/boot.s') diff --git a/kernel/boot.s b/kernel/boot.s new file mode 100644 index 0000000..886cb6a --- /dev/null +++ b/kernel/boot.s @@ -0,0 +1,19 @@ +.option norvc + +.section .text.init + +.global _start +_start: + +.option push +.option norelax + la gp, _global_pointer +.option pop + + la sp, _stack_top + la ra, 0f + call kinit + +0: + wfi + j 0b -- cgit