usr: add first userspace program
This commit is contained in:
parent
39bb50a992
commit
bcf6906e72
6 changed files with 88 additions and 3 deletions
15
usr.bin/test1/start.S
Normal file
15
usr.bin/test1/start.S
Normal 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
|
||||
Loading…
Reference in a new issue