2012-01-01 00:41:00 +00:00
|
|
|
/* Copyright (C) 2011, 2012 The uOFW team
|
2011-12-29 21:27:05 +00:00
|
|
|
See the file COPYING for copying permission.
|
|
|
|
*/
|
|
|
|
|
2012-05-06 20:14:38 +00:00
|
|
|
#include "common.h"
|
|
|
|
|
2012-04-17 19:03:41 +00:00
|
|
|
// interruption
|
|
|
|
#define EXCEP_INT 1
|
|
|
|
// load or instruction fetch exception
|
|
|
|
#define EXCEP_ADEL 4
|
|
|
|
// address store exception
|
|
|
|
#define EXCEP_ADES 5
|
|
|
|
// instruction fetch bus error
|
|
|
|
#define EXCEP_IBE 6
|
|
|
|
// load/store bus error
|
|
|
|
#define EXCEP_DBE 7
|
|
|
|
// syscall
|
|
|
|
#define EXCEP_SYS 8
|
|
|
|
// breakpoint
|
|
|
|
#define EXCEP_BP 9
|
|
|
|
// reserved instruction
|
|
|
|
#define EXCEP_RI 10
|
|
|
|
// coprocessor unusable
|
|
|
|
#define EXCEP_CPU 11
|
|
|
|
// arithmetic overflow
|
|
|
|
#define EXCEP_OV 12
|
|
|
|
// floating-point exception
|
|
|
|
#define EXCEP_FPE 15
|
|
|
|
// watch (reference to WatchHi/WatchLo)
|
|
|
|
#define EXCEP_WATCH 23
|
|
|
|
// "Virtual Coherency Exception data" (used for NMI handling apparently)
|
|
|
|
#define EXCEP_VCED 31
|
|
|
|
|
2011-12-29 21:27:05 +00:00
|
|
|
int sceKernelRegisterPriorityExceptionHandler(int exno, int prio, void (*func)());
|
|
|
|
int sceKernelRegisterDefaultExceptionHandler(void *func);
|
|
|
|
int sceKernelReleaseExceptionHandler(int exno, void (*func)());
|
|
|
|
int sceKernelReleaseDefaultExceptionHandler(void (*func)());
|
|
|
|
int sceKernelRegisterExceptionHandler(int exno, void (*func)());
|
|
|
|
|