+ elf: Prevent dynamically linked programs from running on Soaplin. + sched: Support creating a process from a program_t structure. + syscall: Fix a bug where using syscall number 1024 would crash the OS. + syscall: Added a write syscall. It can only be used for writing to the standard output (FD: 1)
18 lines
No EOL
394 B
NASM
18 lines
No EOL
394 B
NASM
bits 64
|
|
|
|
section .text
|
|
global _start
|
|
|
|
_start:
|
|
mov rax, 1 ; write syscall number
|
|
mov rdi, 1 ; stdout file descriptor
|
|
mov rsi, msg ; pointer to message
|
|
mov rdx, msg_len ; message length
|
|
syscall
|
|
|
|
.loop:
|
|
jmp .loop
|
|
|
|
section .data
|
|
msg db "Hello, World. Technically, this should work on both Soaplin & Linux.", 10 ; 10 is newline
|
|
msg_len equ $ - msg |