fork download
  1. /**
  2.  * Entry point of the kernel's main function. This function gets called by the
  3.  * assembler bootstrap code
  4.  */
  5.  
  6. #include "types.h"
  7. #include "multiboot.h"
  8.  
  9. #include "monitor.h"
  10. #include "hw_utils.h"
  11.  
  12. uint32_t kernel_main(multiboot_t *multiboot_ptr) {
  13. screen_t hello_world_screen;
  14. hello_world_screen.cursor_x = 0;
  15. hello_world_screen.cursor_y = 0;
  16. hello_world_screen.background_color = 0;
  17. hello_world_screen.foreground_color = 15;
  18.  
  19. monitor_switch_screen(&hello_world_screen);
  20. monitor_clear(&hello_world_screen);
  21. monitor_write(&hello_world_screen, "Hello World!\n");
  22.  
  23. __asm__ __volatile__("xchg %bx, %bx");
  24.  
  25.  
  26. return 0xdeadc0de;
  27. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty