Add an example user space process

This commit is contained in:
2026-06-08 21:17:27 +03:00
parent 2d4f76a5dd
commit b32c12b311
23 changed files with 553 additions and 63 deletions
+16
View File
@@ -0,0 +1,16 @@
bits 64
org 0x400000
section .text
mov rax, 1
mov rdi, 1
lea rsi, [rel msg]
mov rdx, 14
syscall
mov rax, 60
xor rdi, rdi
syscall
section .data
msg: db "Hello, ring 3!", 10
+1 -3
View File
@@ -270,9 +270,7 @@ void terminal(process_t *p, __attribute__((unused)) uint8_t argc, __attribute__(
proc = p;
char *greeting = string_format("Welcome to FreywarOS v%s!\n\n", VERSION);
WRITE_D(greeting);
memory_free(greeting);
WRITE_D("Welcome to FreywarOS v" VERSION "!\n\n");
print_prompt();