aboutsummaryrefslogtreecommitdiff
path: root/source/arch/x86_64/src/kernel/main.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-11 15:37:06 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-11 15:37:06 +0200
commit6e1d10528b1c04c34c57995c85b45448715767f2 (patch)
tree08531be2d19fc666a23d96371c8e91aab97ce53f /source/arch/x86_64/src/kernel/main.cpp
parent74eaee0fcc7390d4290b41a2a92ee34346e2f7c2 (diff)
downloadteachos-6e1d10528b1c04c34c57995c85b45448715767f2.tar.xz
teachos-6e1d10528b1c04c34c57995c85b45448715767f2.zip
x86_64: vga: improve text printing code
Diffstat (limited to 'source/arch/x86_64/src/kernel/main.cpp')
-rw-r--r--source/arch/x86_64/src/kernel/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/arch/x86_64/src/kernel/main.cpp b/source/arch/x86_64/src/kernel/main.cpp
index 9ea756a..26ae730 100644
--- a/source/arch/x86_64/src/kernel/main.cpp
+++ b/source/arch/x86_64/src/kernel/main.cpp
@@ -6,10 +6,9 @@ namespace teachos::arch::kernel
{
auto main() -> void
{
- video::vga::text::write("TeachOS is starting up...", static_cast<std::byte>(0x4f));
- while (true)
- {
- asm volatile("hlt");
- }
+ using namespace video::vga;
+
+ text::clear();
+ text::write("TeachOS is starting up...", text::common_attributes::green_on_black);
}
} // namespace teachos::arch::kernel