Guest User

Init.cpp

a guest
Dec 1st, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // Licensed under the GNU General Public License v3
  2.  
  3. #include <Types.hpp>
  4. #include <Multiboot.hpp>
  5.  
  6. #include <Console.cpp>
  7. #include <Utils.cpp>
  8.  
  9. int KernelInit(struct Multiboot *mbs) {
  10. Console console;
  11.  
  12. char *mem;
  13. Itoa(mbs->mbs_mem_upper / 1024 + 1, mem);
  14.  
  15. console.Clear(0x00);
  16. console.PrintText(mem, 0x0f);
  17. console.PrintText(" MB", 0x0f);
  18.  
  19. return 1;
  20. }
  21.  
  22. extern "C" {
  23. int init(struct Multiboot *mbs) {
  24. return KernelInit(mbs);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment