diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2023-10-11 14:43:50 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2023-10-11 14:43:50 +0200 |
| commit | 74eaee0fcc7390d4290b41a2a92ee34346e2f7c2 (patch) | |
| tree | 3a38f8dbe0c6b757167bc264cb68e3da145bd069 /source/arch/x86_64/src/kernel | |
| parent | f47bee5f51a73593d3594940663f56f2427f480b (diff) | |
| download | teachos-74eaee0fcc7390d4290b41a2a92ee34346e2f7c2.tar.xz teachos-74eaee0fcc7390d4290b41a2a92ee34346e2f7c2.zip | |
teachos: restructure file layout
Diffstat (limited to 'source/arch/x86_64/src/kernel')
| -rw-r--r-- | source/arch/x86_64/src/kernel/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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<std::byte>(0x4f)); + while (true) + { + asm volatile("hlt"); + } + } +} // namespace teachos::arch::kernel |
