PSPSDK 2025-04-22
|
#include <stdlib.h>
#include <string.h>
#include <pspkerneltypes.h>
#include <psptypes.h>
#include <pspmoduleinfo.h>
#include <pspthreadman.h>
#include <psploadexec.h>
#include <pspmodulemgr.h>
Data Structures | |
struct | _library_entry |
Macros | |
#define | ARG_MAX 19 |
#define | DEFAULT_THREAD_PRIORITY 32 |
#define | DEFAULT_THREAD_ATTRIBUTE PSP_THREAD_ATTR_USER |
#define | DEFAULT_THREAD_STACK_KB_SIZE 256 |
#define | DEFAULT_MAIN_THREAD_NAME "user_main" |
Functions | |
void | __libcglue_init (int argc, char *argv[]) |
void | __libcglue_deinit () |
void | _init (void) |
void | _fini (void) |
int | main (int argc, char *argv[]) |
void | _main (SceSize args, void *argp) |
Main program thread. | |
void | _exit (int status) |
int | _start (SceSize args, void *argp) |
Startup thread. | |
Variables | |
int | sce_newlib_nocreate_thread_in_start |
unsigned int | sce_newlib_priority |
unsigned int | sce_newlib_attribute |
unsigned int | sce_newlib_stack_kb_size |
const char * | sce_newlib_main_thread_name |
SceModuleInfo | module_info |
#define ARG_MAX 19 |
Referenced by _main().
#define DEFAULT_MAIN_THREAD_NAME "user_main" |
Referenced by _start().
#define DEFAULT_THREAD_ATTRIBUTE PSP_THREAD_ATTR_USER |
Referenced by _start().
#define DEFAULT_THREAD_PRIORITY 32 |
Referenced by _start().
#define DEFAULT_THREAD_STACK_KB_SIZE 256 |
Referenced by _start().
|
extern |
Referenced by _exit().
|
extern |
Referenced by _main().
void _exit | ( | int | status | ) |
|
extern |
Referenced by _exit().
|
extern |
Referenced by _main().
void _main | ( | SceSize | args, |
void * | argp ) |
Main program thread.
Initializes runtime parameters and calls the program's main().
args | - Size (in bytes) of the argp parameter. |
argp | - Pointer to program arguments. Each argument is a NUL-terminated string. |
References __libcglue_init(), _init(), ARG_MAX, main(), and NULL.
Referenced by _start().
int _start | ( | SceSize | args, |
void * | argp ) |
Startup thread.
Creates the main program thread based on variables defined by the program.
args | - Size (in bytes) of arguments passed to the program by the kernel. |
argp | - Pointer to arguments passed by the kernel. |
References _main(), DEFAULT_MAIN_THREAD_NAME, DEFAULT_THREAD_ATTRIBUTE, DEFAULT_THREAD_PRIORITY, DEFAULT_THREAD_STACK_KB_SIZE, _scemoduleinfo::modattribute, module_info, NULL, PSP_MODULE_KERNEL, PSP_THREAD_ATTR_USBWLAN, PSP_THREAD_ATTR_USER, PSP_THREAD_ATTR_VSH, sce_newlib_attribute, sce_newlib_main_thread_name, sce_newlib_nocreate_thread_in_start, sce_newlib_priority, sce_newlib_stack_kb_size, sceKernelCreateThread(), and sceKernelStartThread().
|
extern |
|
extern |
Referenced by _start().
|
extern |
Referenced by _start().
|
extern |
Referenced by _start().
|
extern |
Referenced by _start().
|
extern |
Referenced by _start().