# pspkernel.h

Go to the documentation of this file.

    00001 /*
    00002  * PSP Software Development Kit - http://www.pspdev.org
    00003  * -----------------------------------------------------------------------
    00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
    00005  *
    00006  * pspkernel.h - Main include file that includes all major kernel headers.
    00007  *
    00008  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
    00009  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
    00010  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
    00011  *
    00012  * $Id: pspkernel.h 1038 2005-09-18 15:17:37Z tyranid $
    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 /* PSPKERNEL_H */