POK(kernelpart)
traps.h
Go to the documentation of this file.
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Thu Jan 15 23:34:13 2009
15  */
16 
22 #ifndef __POK_SPARC_TRAPS_H__
23 #define __POK_SPARC_TRAPS_H__
24 
25 #include <types.h>
26 #include <errno.h>
27 
28 #define SPARC_TRAP_IRQ_BASE 0x10
29 #define SPARC_TRAP_SYSCALL_BASE 0x80
30 
31 typedef void (*sparc_traps_handler)(void);
32 
34 
35 pok_ret_t traps_init(void);
36 
37 #endif /* !__POK_PPC_TRAPS_H__ */
38