aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/user/main.cpp
diff options
context:
space:
mode:
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)
{