more userspace stuff

This commit is contained in:
2026-07-01 20:00:22 -05:00
parent af6c1c94cf
commit b6ee4fc3de
21 changed files with 161 additions and 121 deletions

View File

@@ -7,6 +7,8 @@
#include <drivers/vga/vga.h>
#include <lib/print.h>
typedef struct registers {
uint32_t gs, fs, es, ds; // Pushed manually
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax; // Pushed by pusha
@@ -16,7 +18,7 @@ typedef struct registers {
static int32_t sys_exit(int status) {
exit();
asm volatile("hlt");
return 0;
}