aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/main.cpp
blob: 01c14a55b278aa428010e3049bd2445e9e6d51be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "arch/kernel/main.hpp"

#include "arch/video/vga/text.hpp"

#include "stdio.h"

namespace teachos::arch::kernel
{
  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