Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Licensed under the GNU General Public License v3
- #include <Types.hpp>
- #include <Multiboot.hpp>
- #include <Console.cpp>
- #include <Utils.cpp>
- int KernelInit(struct Multiboot *mbs) {
- Console console;
- char *mem;
- Itoa(mbs->mbs_mem_upper / 1024 + 1, mem);
- console.Clear(0x00);
- console.PrintText(mem, 0x0f);
- console.PrintText(" MB", 0x0f);
- return 1;
- }
- extern "C" {
- int init(struct Multiboot *mbs) {
- return KernelInit(mbs);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment