#include "arch/user/main.hpp" #include "arch/context_switching/syscall/main.hpp" #include "arch/memory/heap/global_heap_allocator.hpp" #include #include namespace teachos::arch::user { auto main() -> void { char constexpr syscall_message[] = "Successfully entered user mode and wrote to VGA buffer via syscall!"; context_switching::syscall::syscall(context_switching::syscall::type::WRITE, {reinterpret_cast(&syscall_message)}); int test = std::max(5, 10); (void)test; std::atomic locked = {false}; locked.exchange(true); auto address = memory::heap::global_heap_allocator::malloc(8U); (void)address; for (;;) { } } } // namespace teachos::arch::user