diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-05-05 11:27:29 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-05-05 11:27:29 +0000 |
| commit | 7d2e8bc16e6c1bacb3c676d21ea2245d8132218f (patch) | |
| tree | e43e0c3e43f0288cf721de56f0ac33aac9dddbc0 /arch/x86_64/src/user | |
| parent | 27d4fb90ebbc754e98ff68ce5bc7839a44ed99c1 (diff) | |
| download | teachos-7d2e8bc16e6c1bacb3c676d21ea2245d8132218f.tar.xz teachos-7d2e8bc16e6c1bacb3c676d21ea2245d8132218f.zip | |
Remove the addition of USER_ACCESSIBLE flag to every entry created
Diffstat (limited to 'arch/x86_64/src/user')
| -rw-r--r-- | arch/x86_64/src/user/main.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/x86_64/src/user/main.cpp b/arch/x86_64/src/user/main.cpp index 1d56d2e..3ddcb32 100644 --- a/arch/x86_64/src/user/main.cpp +++ b/arch/x86_64/src/user/main.cpp @@ -10,18 +10,6 @@ namespace teachos::arch::user [[gnu::section(".user_text")]] auto main() -> void { - // TODO: Remove or replace this wall of text - // RFLAGS is saved into R11, RIP of the next instruction into RCX - // Required for SYSRETURN to know where to return too. - // Additional state needs to be saved by calling convention: - - // Syscall Number: RAX, Return Value: RAX (0 indicating no error, and -1 indicating an error, use as a boolean) - // Argument in this order (max 6. no argument on stack): RDI, RSI, RDX, R10, R8, R9 - // Not used registers: RBX, RSP, R12, R13, R14 - - // Actual Source: https://man7.org/linux/man-pages/man2/syscall.2.html More cleare documentation: - // https://sys.readthedocs.io/en/latest/doc/05_calling_system_calls.html - char constexpr syscall_message[] = "Successfully entered user mode and wrote to VGA buffer via syscall!"; auto const error = context_switching::syscall::syscall(context_switching::syscall::type::WRITE, {reinterpret_cast<uint64_t>(&syscall_message)}); |
