Load kernel modules into kernel memory.

This way they don't eat up user memory space.
This commit is contained in:
Unknown W. Brackets
2014-07-15 08:37:49 -07:00
parent 99d96218e1
commit 7c37d64717
3 changed files with 38 additions and 18 deletions

View File

@@ -20,6 +20,18 @@
#include <string>
#include "Core/HLE/sceKernel.h"
struct PspModuleInfo {
u16_le moduleAttrs; //0x0000 User Mode, 0x1000 Kernel Mode
u16_le moduleVersion;
// 28 bytes of module name, packed with 0's.
char name[28];
u32_le gp; // ptr to MIPS GOT data (global offset table)
u32_le libent; // ptr to .lib.ent section
u32_le libentend; // ptr to end of .lib.ent section
u32_le libstub; // ptr to .lib.stub section
u32_le libstubend; // ptr to end of .lib.stub section
};
class PointerWrap;
KernelObject *__KernelModuleObject();