source: libcaca/trunk/kernel/kernel.h @ 4300

Last change on this file since 4300 was 4300, checked in by Sam Hocevar, 10 years ago

Fix the source code to reduce testsuite errors.

  • Property svn:keywords set to Id
File size: 975 bytes
Line 
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: kernel.h 4300 2010-01-24 21:58:17Z sam $
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
17
18
19
20extern void init_gdt(void);
21void init_pic(void);
22void init_idt(void);
23void putcar(unsigned char c);
24void dump_gdt(void);
25
26void disable_interrupt(char i);
27void enable_interrupt(char i);
28
29#define cli __asm__("cli" : : )
30#define sti __asm__("sti" : : )
31
32#define rdtsc(low, high) \
33    __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
34
35/* The application's entry point */
36int main(int argc, char *argv[]);
37
Note: See TracBrowser for help on using the repository browser.