more userspace stuff
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user