libspe2
0.9a
|
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "spebase.h"
#include "lib_builtin.h"
#include "default_c99_handler.h"
#include "default_posix1_handler.h"
#include "default_libea_handler.h"
Go to the source code of this file.
Macros | |
#define | HANDLER_IDX(x) (x & 0xff) |
Functions | |
int | _base_spe_callback_handler_register (void *handler, unsigned int callnum, unsigned int mode) |
int | _base_spe_callback_handler_deregister (unsigned int callnum) |
void * | _base_spe_callback_handler_query (unsigned int callnum) |
int | _base_spe_handle_library_callback (struct spe_context *spe, int callnum, unsigned int npc) |
#define HANDLER_IDX | ( | x | ) | (x & 0xff) |
Definition at line 29 of file lib_builtin.c.
int _base_spe_callback_handler_deregister | ( | unsigned int | callnum | ) |
unregister a handler function for the specified number NOTE: unregistering a handler from call zero and one is ignored.
Definition at line 78 of file lib_builtin.c.
References MAX_CALLNUM, and RESERVED.
void* _base_spe_callback_handler_query | ( | unsigned int | callnum | ) |
query a handler function for the specified number
Definition at line 98 of file lib_builtin.c.
References MAX_CALLNUM.
int _base_spe_callback_handler_register | ( | void * | handler, |
unsigned int | callnum, | ||
unsigned int | mode | ||
) |
register a handler function for the specified number NOTE: registering a handler to call zero and one is ignored.
Definition at line 40 of file lib_builtin.c.
References MAX_CALLNUM, RESERVED, SPE_CALLBACK_NEW, and SPE_CALLBACK_UPDATE.
int _base_spe_handle_library_callback | ( | struct spe_context * | spe, |
int | callnum, | ||
unsigned int | npc | ||
) |
Definition at line 113 of file lib_builtin.c.
References spe_context::base_private, DEBUG_PRINTF, spe_context_base_priv::flags, spe_context_base_priv::mem_mmap_base, SPE_EMULATE_PARAM_BUFFER, and SPE_ISOLATE_EMULATE.
Referenced by _base_spe_context_run().