00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PSPKERNEL_H
00016 #define PSPKERNEL_H
00017
00018 #include <pspuser.h>
00019 #include <pspiofilemgr_kernel.h>
00020 #include <psploadcore.h>
00021 #include <pspstdio_kernel.h>
00022 #include <pspsysreg.h>
00023 #include <pspkdebug.h>
00024
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028
00036 #define pspKernelSetKernelPC() \
00037 { \
00038 __asm__ volatile ( \
00039 "la $8, 1f\n\t" \
00040 "lui $9, 0x8000\n\t" \
00041 "or $8, $9\n\t" \
00042 "jr $8\n\t" \
00043 " nop\n\t" \
00044 "1:\n\t" \
00045 : : : "$8", "$9"); \
00046 sceKernelIcacheClearAll(); \
00047 }
00048
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052
00053 #endif