You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
997 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. * $Id$
  9. *
  10. * This library is free software. It comes without any warranty, to
  11. * the extent permitted by applicable law. You can redistribute it
  12. * and/or modify it under the terms of the Do What The Fuck You Want
  13. * To Public License, Version 2, as published by Sam Hocevar. See
  14. * http://sam.zoy.org/wtfpl/COPYING for more details.
  15. */
  16. extern void init_gdt(void);
  17. void init_pic(void);
  18. void init_idt(void);
  19. void putcar(unsigned char c);
  20. void dump_gdt(void);
  21. void disable_interrupt(char i);
  22. void enable_interrupt(char i);
  23. #define cli __asm__("cli"::)
  24. #define sti __asm__("sti"::)
  25. #define rdtsc(low,high) \
  26. __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
  27. /* The application's entry point */
  28. int main(int argc, char *argv[]);