diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-15 16:32:34 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-15 16:32:34 +0100 |
| commit | 0f09b8ff164a69195ec6c25f6aea1cb607d826f8 (patch) | |
| tree | a59cbf95b3564312ab4dcfebabb2d617b6cdf8ab /kernel/src/main.cpp | |
| parent | 43ddde5e30a0d71aa11025a5ae232cea83e7fbde (diff) | |
| download | teachos-0f09b8ff164a69195ec6c25f6aea1cb607d826f8.tar.xz teachos-0f09b8ff164a69195ec6c25f6aea1cb607d826f8.zip | |
kernel: move implementation to kernel directory
Diffstat (limited to 'kernel/src/main.cpp')
| -rw-r--r-- | kernel/src/main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp new file mode 100644 index 0000000..3394275 --- /dev/null +++ b/kernel/src/main.cpp @@ -0,0 +1,14 @@ +#include "kapi/cio.hpp" +#include "kapi/memory.hpp" +#include "kapi/system.hpp" + +auto main() -> int +{ + teachos::cio::init(); + teachos::cio::println("[OS] IO subsystem initialized."); + + teachos::memory::init(); + teachos::cio::println("[OS] Memory subsystem initialized."); + + teachos::system::panic("Returning from kernel main!"); +} |
