uOFW
Reverse engineered PSP kernel 6.60.
|
#include <loadcore.h>
The SceModule structure represents a loaded module in memory.
struct SceModule* SceModule::next |
Pointer to the next registered module. Modules are connected via a linked list.
u16 SceModule::attribute |
The attributes of a module. One or more of SceModuleAttribute and SceModulePrivilegeLevel.
u8 SceModule::version[MODULE_VERSION_NUMBER_CATEGORY_SIZE] |
The version of the module. Consists of a major and minor part. There can be several modules loaded with the same name and version.
char SceModule::modName[SCE_MODULE_NAME_LEN] |
The module's name. There can be several modules loaded with the same name.
char SceModule::terminal |
String terminator (always '\0').
u16 SceModule::status |
The status of the module. Contains information whether the module has been started, stopped, is a user module, etc.
u16 SceModule::padding |
Reserved.
SceUID SceModule::secId |
A secondary ID for the module.
SceUID SceModule::modId |
The module's UID.
SceUID SceModule::userModThid |
The thread ID of a user module.
SceUID SceModule::moduleBlockId |
The ID of the memory block belonging to the module.
SceUID SceModule::mpIdText |
The ID of the TEXT segment's memory partition.
SceUID SceModule::mpIdData |
The ID of the DATA segment's memory partition.
void* SceModule::entTop |
Pointer to the first resident library entry table of the module.
SceSize SceModule::entSize |
The size of all resident library entry tables of the module.
void* SceModule::stubTop |
Pointer to the first stub library entry table of the module.
SceSize SceModule::stubSize |
The size of all stub library entry tables of the module.
SceKernelThreadEntry SceModule::moduleStart |
A pointer to the (required) module's start entry function. This function is executed during the module's startup.
SceKernelThreadEntry SceModule::moduleStop |
A pointer to the (required) module's stop entry function. This function is executed during the module's stopping phase.
SceKernelThreadEntry SceModule::moduleBootstart |
A pointer to a module's Bootstart entry function. This function is probably executed after a reboot.
SceKernelRebootBeforeForKernel SceModule::moduleRebootBefore |
A pointer to a module's rebootBefore entry function. This function is probably executed before a reboot.
SceKernelRebootPhaseForKernel SceModule::moduleRebootPhase |
A pointer to a module's rebootPhase entry function. This function is probably executed during a reboot.
u32 SceModule::entryAddr |
The entry address of the module. It is the offset from the start of the TEXT segment to the program's entry point.
u32 SceModule::gpValue |
Contains the offset from the start of the TEXT segment of the program's GP register value.
u32 SceModule::textAddr |
The start address of the TEXT segment.
SceSize SceModule::textSize |
The size of the TEXT segment.
SceSize SceModule::dataSize |
The size of the DATA segment.
SceSize SceModule::bssSize |
The size of the BSS segment.
u8 SceModule::nSegments |
The number of segments the module consists of.
u8 SceModule::padding2[3] |
Reserved.
u32 SceModule::segmentAddr[SCE_KERNEL_MAX_MODULE_SEGMENT] |
An array containing the start address of each segment.
SceSize SceModule::segmentSize[SCE_KERNEL_MAX_MODULE_SEGMENT] |
An array containing the size of each segment.
u32 SceModule::segmentAlign[SCE_KERNEL_MAX_MODULE_SEGMENT] |
An array containing the alignment information of each segment.
s32 SceModule::moduleStartThreadPriority |
The priority of the module start thread.
SceSize SceModule::moduleStartThreadStacksize |
The stack size of the module start thread.
SceUInt SceModule::moduleStartThreadAttr |
The attributes of the module start thread.
s32 SceModule::moduleStopThreadPriority |
The priority of the module stop thread.
SceSize SceModule::moduleStopThreadStacksize |
The stack size of the module stop thread.
SceUInt SceModule::moduleStopThreadAttr |
The attributes of the module stop thread.
s32 SceModule::moduleRebootBeforeThreadPriority |
The priority of the module reboot before thread.
SceSize SceModule::moduleRebootBeforeThreadStacksize |
The stack size of the module reboot before thread.
SceUInt SceModule::moduleRebootBeforeThreadAttr |
The attributes of the module reboot before thread.
u32 SceModule::countRegVal |
The value of the coprocessor 0's count register when the module is created.
u32 SceModule::segmentChecksum |
The segment checksum of the module's segments.
u32 SceModule::textSegmentChecksum |
TEXT segment checksum of the module.
u32 SceModule::computeTextSegmentChecksum |
Whether to compute the text segment checksum before starting the module (see prologue). If non-zero, the text segment checksum will be computed after the module's resident libraries have been registered, and its stub libraries have been linked.