aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/user/main.cpp
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-05-05 06:41:31 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-05-05 06:41:31 +0000
commitc1dff44858ebdb3cd5a49e84179796e44e7eb91c (patch)
tree998f8cec607da4359d5b3e9db89e949250ccd197 /arch/x86_64/src/user/main.cpp
parentf83727a0c8913d19415c2ad482c70ee7373f6f3f (diff)
downloadteachos-c1dff44858ebdb3cd5a49e84179796e44e7eb91c.tar.xz
teachos-c1dff44858ebdb3cd5a49e84179796e44e7eb91c.zip
Fix recursive include using extra file
Diffstat (limited to 'arch/x86_64/src/user/main.cpp')
-rw-r--r--arch/x86_64/src/user/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86_64/src/user/main.cpp b/arch/x86_64/src/user/main.cpp
index 6d8eea7..8ce21ba 100644
--- a/arch/x86_64/src/user/main.cpp
+++ b/arch/x86_64/src/user/main.cpp
@@ -7,7 +7,6 @@
namespace teachos::arch::user
{
-
[[gnu::section(".user_text")]]
auto main() -> void
{
@@ -23,9 +22,9 @@ namespace teachos::arch::user
// 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
- const char syscall_message[68] = "Successfully entered user mode and wrote to VGA buffer via syscall!";
- auto error = context_switching::syscall::syscall(context_switching::syscall::WRITE,
- {reinterpret_cast<uint64_t>(&syscall_message)});
+ 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)});
if (!error)
{