Guest User

kernel.cpp

a guest
Apr 6th, 2015
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. #include <stddef.h>
  2. #include <stdint.h>
  3.  
  4. #include <boot/utils.h>
  5. #include <boot/video.h>
  6.  
  7. #if defined(__linux__)
  8. /* warn */
  9. #endif
  10.  
  11. #if !defined(__i386__)
  12. /* TODO: we need to compile the code with a custom compiler */
  13. #endif
  14.  
  15. Video video;
  16.  
  17. #if defined(__cplusplus)
  18. extern "C" /* C linkage for k_early_init */
  19. #endif
  20. void k_early_init()
  21. {
  22.     video.init();
  23.     video.puts("Init real mode: \n");
  24. }
  25.  
  26. #if defined(__cplusplus)
  27. extern "C" /* C linkage for k_main */
  28. #endif
  29. void k_main()
  30. {
  31.     while(1) { /* hang out for a while */ }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment