GitOS
Loading...
Searching...
No Matches
Bootloader.hpp
Go to the documentation of this file.
1//
2// Created by Pawel Reich on 2/18/25.
3//
4
5#pragma once
6
7#include <stdint-gcc.h>
8
9#pragma once
10
11class Bootloader
12{
13 friend class GitBoot;
14 friend class Multiboot;
15
16 public:
17 virtual void init(uint32_t magic, void* info_ptr) = 0;
18 virtual ~Bootloader() = default;
19 static Bootloader* the()
20 {
21 return m_bootloader;
22 };
23
24 virtual const char* get_cmdline() const = 0;
25 virtual const char* get_bootloader_name() const = 0;
26
27 virtual uint64_t get_heap_base_address() const = 0;
28 virtual uint64_t get_heap_size() const = 0;
29
30 private:
31 static Bootloader* m_bootloader;
32};
uint32_t magic
Definition Multiboot.hpp:0