Fix setup of usermode stack and added final system call to exit.

This commit is contained in:
2024-01-27 22:51:45 +01:00
parent 193e3a19dc
commit 3fff3bd8fc
6 changed files with 26 additions and 6 deletions

View File

@@ -12,7 +12,8 @@ namespace baos
enum class Syscall : std::uint64_t
{
FILE_READ = 0,
FILE_WRITE = 1
FILE_WRITE = 1,
EXIT = 0x3C
};
void setupSyscall() noexcept;