From d98ec57128628b81fcd32269a92742a037b7f713 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 26 Dec 2021 17:50:11 +0200 Subject: First useful jump to userspace! --- arch/riscv/conf/s.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'arch/riscv/conf/s.S') diff --git a/arch/riscv/conf/s.S b/arch/riscv/conf/s.S index 7b796ce..e6997ac 100644 --- a/arch/riscv/conf/s.S +++ b/arch/riscv/conf/s.S @@ -1,4 +1,7 @@ .text .global _start _start: -loop: j loop +li a1, 1 +loop: +add a0, a0, a1 +jal loop -- cgit v1.3