diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-09-29 07:02:25 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-09-29 07:02:25 +0000 |
| commit | 6288868ebd728720236d6a857df2658bff2d6547 (patch) | |
| tree | 2568ea1271ff5e0c7ef0c1d2f5a7ab8ce1992d6b /arch/x86_64/src | |
| parent | 47879f42d70755fcf5473ffb82798b515cb2e21b (diff) | |
| download | teachos-6288868ebd728720236d6a857df2658bff2d6547.tar.xz teachos-6288868ebd728720236d6a857df2658bff2d6547.zip | |
Pass multiboot info to main function
Diffstat (limited to 'arch/x86_64/src')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index 0e90264..01c14a5 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -2,14 +2,19 @@ #include "arch/video/vga/text.hpp" +#include "stdio.h" + namespace teachos::arch::kernel { - auto main() -> void + auto main(size_t multiboot_information_address) -> void { using namespace video::vga; text::clear(); text::cursor(false); text::write("TeachOS is starting up...", text::common_attributes::green_on_black); + char address[32U] = {}; + snprintf(address, sizeof(address), "Multiboot address: (%lu)", multiboot_information_address); + text::write(address, text::common_attributes::green_on_black); } } // namespace teachos::arch::kernel |
