aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/conf/s.S
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-26 17:50:11 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-26 17:50:11 +0200
commitd98ec57128628b81fcd32269a92742a037b7f713 (patch)
tree0e3f8d78d8347ef0a6e69d41b9d9be20c822b642 /arch/riscv/conf/s.S
parenta64f3588ff5da7f148659ccb0eff844ccfb57088 (diff)
downloadkmi-d98ec57128628b81fcd32269a92742a037b7f713.tar.gz
kmi-d98ec57128628b81fcd32269a92742a037b7f713.zip
First useful jump to userspace!
Diffstat (limited to 'arch/riscv/conf/s.S')
-rw-r--r--arch/riscv/conf/s.S5
1 files changed, 4 insertions, 1 deletions
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