From c1dff44858ebdb3cd5a49e84179796e44e7eb91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Mon, 5 May 2025 06:41:31 +0000 Subject: Fix recursive include using extra file --- arch/x86_64/src/user/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'arch/x86_64/src/user/main.cpp') 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(&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(&syscall_message)}); if (!error) { -- cgit v1.2.3