Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

43 wiersze
1.1 KiB

  1. /*
  2. * libcaca Colour ASCII-Art library
  3. * Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
  4. * 2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
  5. * All Rights Reserved
  6. *
  7. * This library is free software. It comes without any warranty, to
  8. * the extent permitted by applicable law. You can redistribute it
  9. * and/or modify it under the terms of the Do What The Fuck You Want
  10. * To Public License, Version 2, as published by Sam Hocevar. See
  11. * http://sam.zoy.org/wtfpl/COPYING for more details.
  12. */
  13. #include "kernel.h"
  14. #include "klibc.h"
  15. extern int kmain(void);
  16. /* Entry point bootsect.asm loaded this file at 0x0100:0x0, which is mapped
  17. at 0x8:0x1000 (selector+8bytes, offset 1000 (0x100 + 0x0) */
  18. /* 0x1000 */
  19. void _start(void)
  20. {
  21. clearscreen();
  22. init_gdt();
  23. print("Loading IDT\n");
  24. init_idt();
  25. print("Loading PIC\n");
  26. init_pic();
  27. print("Running kmain()\n");
  28. sti;
  29. kmain(); /* Call kernel's kmain() */
  30. while (1)
  31. { /* Never return */
  32. print("hlt;\n");
  33. }
  34. }