From c173df46a0a12fe52fdf13323f967e9117462096 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 12 Aug 2024 08:24:44 +0200 Subject: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mainly with the code I took from @popovicu's blog. Signed-off-by: Miquel Sabaté Solà --- kernel/hello.s | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 kernel/hello.s (limited to 'kernel/hello.s') diff --git a/kernel/hello.s b/kernel/hello.s new file mode 100644 index 0000000..eacd797 --- /dev/null +++ b/kernel/hello.s @@ -0,0 +1,15 @@ +.global _start +.section .text.kernel + +_start: li a7, 0x4442434E + li a6, 0x00 + li a0, 12 + lla a1, debug_string + li a2, 0 + ecall + +loop: j loop + + .section .rodata +debug_string: + .string "Hello world\n" -- cgit v1.2.3