aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/main.cpp
blob: e77818e593523639f26193e5ea9890185d98e477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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() -> 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);
  }
}  // namespace teachos::arch::kernel