utest: rename utest to init

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-22 01:13:18 -04:00
commit 5a67532500
7 changed files with 7 additions and 5 deletions

22
usr.bin/init/syscall.S Normal file
View file

@ -0,0 +1,22 @@
.intel_syntax noprefix
.macro syscall_define name no
.global \name
\name:
mov rax, \no
mov r10, rcx
call syscall
ret
.endm
.global syscall
syscall:
mov r10, rcx
syscall
ret
syscall_define read 0
syscall_define write 1
syscall_define open 2
syscall_define close 3