usr: add first userspace program

This commit is contained in:
Michael Shaw 2023-11-15 14:33:34 -05:00
commit bcf6906e72
6 changed files with 88 additions and 3 deletions

15
usr.bin/test1/start.S Normal file
View file

@ -0,0 +1,15 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* test1/start.S
*
* Test the basic functionality of the kernel loader
*/
sys_exit = 60
.global _start
_start:
call main
movq %rax, %rdi
movq sys_exit, %rax
int $0x80