From 74eaee0fcc7390d4290b41a2a92ee34346e2f7c2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 11 Oct 2023 14:43:50 +0200 Subject: teachos: restructure file layout --- source/arch/x86_64/src/kernel/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 source/arch/x86_64/src/kernel/main.cpp (limited to 'source/arch/x86_64/src/kernel') diff --git a/source/arch/x86_64/src/kernel/main.cpp b/source/arch/x86_64/src/kernel/main.cpp new file mode 100644 index 0000000..9ea756a --- /dev/null +++ b/source/arch/x86_64/src/kernel/main.cpp @@ -0,0 +1,15 @@ +#include "arch/kernel/main.hpp" + +#include "arch/video/vga/text.hpp" + +namespace teachos::arch::kernel +{ + auto main() -> void + { + video::vga::text::write("TeachOS is starting up...", static_cast(0x4f)); + while (true) + { + asm volatile("hlt"); + } + } +} // namespace teachos::arch::kernel -- cgit v1.2.3