SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <common.h>
  2.  
  3. #include <idt.h>
  4. #include <drivers/keyboard.h>
  5. #include <drivers/terminal.h>
  6.  
  7. void kern_main()
  8. {
  9.   /*
  10.     The entry point for the Helio kernel. As of now, this currently doesn't
  11.     do a whole lot other than hang the system indefinitely. The IDT and IRQ handling is
  12.     setup on a lower level than C, in the Assembly code.
  13.   */
  14.  
  15.   // FIXME: For some reason this doesnt work
  16.   idt_init();
  17.   term_clear();
  18.   term_write("Hello");
  19.  
  20.   // while (1)
  21.   // {
  22.   //   int k = inportb(0x60);
  23.  
  24.   //   char s[2] = {0};
  25.   //   s[0] = k;
  26.   //   term_write(s);
  27.   // }
  28.   // //scr_tmputchar('H', 0, 0, 0x07);
  29.   // scr_tmwrite("Hello world from Helio!");
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top