| 
    POK(kernelpart)
    
   | 
 
Traps management. More...
#include <types.h>#include <errno.h>#include <libc.h>#include <core/debug.h>#include "thread.h"#include "traps.h"Go to the source code of this file.
Functions | |
| pok_ret_t | traps_init (void) | 
| void | trap_handler (unsigned int pc, unsigned int npc, unsigned int psr, unsigned int trap_nb, unsigned int restore_counter, unsigned int stack_pointer) | 
Variables | |
| sparc_traps_handler | pok_sparc_isr [256] | 
Traps management.
Definition in file traps.c.
| void trap_handler | ( | unsigned int | pc, | 
| unsigned int | npc, | ||
| unsigned int | psr, | ||
| unsigned int | trap_nb, | ||
| unsigned int | restore_counter, | ||
| unsigned int | stack_pointer | ||
| ) | 
Function called by interrupt pre-handler. Call the correct handler for the given trap number.
| trap_nb | The number of the current trap. (cf SPARC V8 Manual, page 76) | 
| stack_pointer | Adress of the interrupted stack. | 
Definition at line 53 of file traps.c.
| pok_ret_t traps_init | ( | void | ) | 
Initialize ISR table.
| sparc_traps_handler pok_sparc_isr[256] |