Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

36 rader
963 B

  1. /*
  2. * libcaca
  3. * libcaca Colour ASCII-Art library
  4. * Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
  5. * 2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
  6. * All Rights Reserved
  7. *
  8. * This library is free software. It comes without any warranty, to
  9. * the extent permitted by applicable law. You can redistribute it
  10. * and/or modify it under the terms of the Do What The Fuck You Want
  11. * To Public License, Version 2, as published by Sam Hocevar. See
  12. * http://sam.zoy.org/wtfpl/COPYING for more details.
  13. */
  14. extern void init_gdt(void);
  15. void init_pic(void);
  16. void init_idt(void);
  17. void putcar(unsigned char c);
  18. void dump_gdt(void);
  19. void disable_interrupt(char i);
  20. void enable_interrupt(char i);
  21. #define cli __asm__("cli" : : )
  22. #define sti __asm__("sti" : : )
  23. #define rdtsc(low, high) \
  24. __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
  25. /* The application's entry point */
  26. int main(int argc, char *argv[]);