PSPSDK 2024-10-31
|
#include <stdlib.h>
#include <string.h>
#include <pspkerneltypes.h>
#include <pspmoduleinfo.h>
#include <pspthreadman.h>
#include <psploadexec.h>
#include <pspmodulemgr.h>
Macros | |
#define | ARG_MAX 19 |
#define | DEFAULT_THREAD_PRIORITY 32 |
#define | DEFAULT_THREAD_ATTRIBUTE 0 |
#define | DEFAULT_THREAD_STACK_KB_SIZE 256 |
#define | DEFAULT_MAIN_THREAD_NAME "user_main" |
Functions | |
int sce_newlib_nocreate_thread_in_start | __attribute__ ((weak)) |
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. | |
__attribute__ ((__noreturn__)) | |
int | module_start (SceSize args, void *argp) __attribute__((alias("_start"))) |
int | _start (SceSize args, void *argp) |
Startup thread. | |
#define ARG_MAX 19 |
#define DEFAULT_MAIN_THREAD_NAME "user_main" |
#define DEFAULT_THREAD_ATTRIBUTE 0 |
#define DEFAULT_THREAD_PRIORITY 32 |
#define DEFAULT_THREAD_STACK_KB_SIZE 256 |
__attribute__ | ( | (__noreturn__) | ) |
References __libcglue_deinit(), _fini(), NULL, sceKernelExitGame(), sceKernelSelfStopUnloadModule(), and x.
|
extern |
|
extern |
Referenced by __attribute__().
Referenced by __attribute__().
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(), NULL, and x.
Referenced by _start().
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(), attribute, DEFAULT_MAIN_THREAD_NAME, DEFAULT_THREAD_ATTRIBUTE, DEFAULT_THREAD_PRIORITY, DEFAULT_THREAD_STACK_KB_SIZE, NULL, sceKernelCreateThread(), sceKernelStartThread(), and x.