| 1 |
/* |
| 2 |
* libcaca |
| 3 |
* libcaca Colour ASCII-Art library |
| 4 |
* Copyright (c) 2006-2012 Sam Hocevar <[email protected]> |
| 5 |
* 2009-2010 Jean-Yves Lamoureux <[email protected]> |
| 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://www.wtfpl.net/ for more details. |
| 13 |
*/ |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
extern void init_gdt(void); |
| 19 |
void init_pic(void); |
| 20 |
void init_idt(void); |
| 21 |
void putcar(unsigned char c); |
| 22 |
void dump_gdt(void); |
| 23 |
|
| 24 |
void disable_interrupt(char i); |
| 25 |
void enable_interrupt(char i); |
| 26 |
|
| 27 |
#define cli __asm__("cli" : : ) |
| 28 |
#define sti __asm__("sti" : : ) |
| 29 |
|
| 30 |
#define rdtsc(low, high) \ |
| 31 |
__asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)) |
| 32 |
|
| 33 |
/* The application's entry point */ |
| 34 |
int main(int argc, char *argv[]); |
| 35 |
|