uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
exceptionman.h
1/* Copyright (C) 2011, 2012 The uOFW team
2 See the file COPYING for copying permission.
3*/
4
5#include "common_header.h"
6
7// interruption
8#define EXCEP_INT 1
9// load or instruction fetch exception
10#define EXCEP_ADEL 4
11// address store exception
12#define EXCEP_ADES 5
13// instruction fetch bus error
14#define EXCEP_IBE 6
15// load/store bus error
16#define EXCEP_DBE 7
17// syscall
18#define EXCEP_SYS 8
19// breakpoint
20#define EXCEP_BP 9
21// reserved instruction
22#define EXCEP_RI 10
23// coprocessor unusable
24#define EXCEP_CPU 11
25// arithmetic overflow
26#define EXCEP_OV 12
27// floating-point exception
28#define EXCEP_FPE 15
29// watch (reference to WatchHi/WatchLo)
30#define EXCEP_WATCH 23
31// "Virtual Coherency Exception data" (used for NMI handling apparently)
32#define EXCEP_VCED 31
33
34int sceKernelRegisterPriorityExceptionHandler(int exno, int prio, void (*func)());
35int sceKernelRegisterDefaultExceptionHandler(void *func);
36int sceKernelReleaseExceptionHandler(int exno, void (*func)());
37int sceKernelReleaseDefaultExceptionHandler(void (*func)());
38int sceKernelRegisterExceptionHandler(int exno, void (*func)());
39