Advertisement
Guest User

waow

a guest
Jul 24th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #include <kernel/tty.h>
  4. #include <kernel/gdt.h>
  5. #include <kernel/idt.h>
  6. #include <kernel/timer.h>
  7. #include <kernel/port_io.h>
  8.  
  9. void kernel_main(void) {
  10. tty_init();
  11. gdt_init();
  12. printf("Initialised GDT.\n");
  13. idt_init();
  14. printf("Initialised IDT.\n");
  15. timer_init();
  16. while (1) {
  17. outb(0x40, 0x00);
  18. uint8_t res = inb(0x40);
  19. outb(0x3F8, res);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement