aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel
diff options
context:
space:
mode:
authorTheSoeren <imhofabian@gmail.com>2024-09-29 08:52:28 +0000
committerTheSoeren <imhofabian@gmail.com>2024-09-29 08:52:28 +0000
commiteeee7967c17704fee443a3b5b02d53a580f18b73 (patch)
treee4555b596add2a7f4514643095eda5ce5b7a21f7 /arch/x86_64/src/kernel
parent4e991f05b8beb7538cee6939777f36610f8b7bc9 (diff)
downloadteachos-eeee7967c17704fee443a3b5b02d53a580f18b73.tar.xz
teachos-eeee7967c17704fee443a3b5b02d53a580f18b73.zip
use multiboot_information_pointer public variable
Diffstat (limited to 'arch/x86_64/src/kernel')
-rw-r--r--arch/x86_64/src/kernel/main.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index cb5092c..e77818e 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -1,19 +1,25 @@
#include "arch/kernel/main.hpp"
+#include "arch/boot/multiboot.hpp"
+#include "arch/boot/pointers.hpp"
#include "arch/video/vga/text.hpp"
namespace teachos::arch::kernel
{
- auto main(size_t multiboot_information_address) -> void
+ auto main() -> void
{
using namespace video::vga;
+ auto t = arch::boot::multiboot_information_pointer;
+ // auto multiboot_tag = (struct multiboot_tag *) ((uint8_t) t + 8);
+ // for (auto tag = multiboot_tag; tag->type != )
+
+ if (t == 300)
+ {
+ }
+
text::clear();
text::cursor(false);
text::write("TeachOS is starting up...", text::common_attributes::green_on_black);
- if (multiboot_information_address > 5)
- {
- return;
- }
}
} // namespace teachos::arch::kernel