aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/user
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/user')
-rw-r--r--arch/x86_64/src/user/main.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86_64/src/user/main.cpp b/arch/x86_64/src/user/main.cpp
index a435a41..747a8a4 100644
--- a/arch/x86_64/src/user/main.cpp
+++ b/arch/x86_64/src/user/main.cpp
@@ -6,10 +6,6 @@
#include <algorithm>
#include <atomic>
-// TODO: Disallow these imports
-#include "arch/kernel/cpu/if.hpp"
-#include "arch/video/vga/text.hpp"
-
namespace teachos::arch::user
{
auto main() -> void
@@ -18,8 +14,6 @@ namespace teachos::arch::user
context_switching::syscall::syscall(context_switching::syscall::type::WRITE,
{reinterpret_cast<uint64_t>(&syscall_message)});
- // kernel::cpu::clear_interrupt_flag(); // Causes crash Kernel Code (.text) is not mapped in User mMde
-
int test = std::max(5, 10);
(void)test;
@@ -29,16 +23,6 @@ namespace teachos::arch::user
auto address = memory::heap::global_heap_allocator::malloc(8U);
(void)address;
- // auto test = new int{20}; // Causes crash Heap is not mapped in User Mode
- // (void)test;
-
- // if (!error)
- // {
- // // Causes crash vga is not mapped in User Mode
- // video::vga::text::write("Successfully made a SYSCALL and returned with SYSRETQ!",
- // video::vga::text::common_attributes::green_on_black);
- // }
-
for (;;)
{
}