Implement syscalls, hello world from userspace

This commit is contained in:
2025-09-02 23:51:14 +02:00
parent 920de10025
commit 8a12f23b69
24 changed files with 313 additions and 44 deletions

View File

@ -1,6 +1,18 @@
.section .data
STRING:
.string "Hello World from userspace"
STRING_LEN:
.quad . - STRING
.section .text
.global _start
_start:
.spin:
jmp .spin
movq $1, %rax
lea STRING(%rip), %rdi
lea STRING_LEN(%rip), %rsi
syscall
movq $2, %rax
syscall