mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Remove WNOHANG from regression test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c88d10524c
commit
fad1e42e56
28
regression/apps/hello_world/hello_world.S
Normal file
28
regression/apps/hello_world/hello_world.S
Normal file
@ -0,0 +1,28 @@
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
.global _start
|
||||
|
||||
.section .text
|
||||
_start:
|
||||
call print_message
|
||||
call print_message
|
||||
call print_message
|
||||
mov $60, %rax # syscall number of exit
|
||||
mov $0, %rdi # exit code
|
||||
syscall
|
||||
get_pid:
|
||||
mov $39, %rax
|
||||
syscall
|
||||
ret
|
||||
print_message:
|
||||
mov $1, %rax # syscall number of write
|
||||
mov $1, %rdi # stdout
|
||||
mov $message, %rsi # address of message
|
||||
mov $message_end, %rdx
|
||||
sub %rsi, %rdx # calculate message len
|
||||
syscall
|
||||
ret
|
||||
.section .rodata
|
||||
message:
|
||||
.ascii "Hello, world\n"
|
||||
message_end:
|
Reference in New Issue
Block a user