1
// Copyright (c) 2012- PPSSPP Project.
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, version 2.0 or later versions.
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License 2.0 for more details.
12
// A copy of the GPL 2.0 should have been included with the program.
13
// If not, see http://www.gnu.org/licenses/
15
// Official git repository and contact information can be found at
16
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
21
#include "Core/HLE/sceKernel.h"
23
struct PspModuleInfo {
24
u16_le moduleAttrs; //0x0000 User Mode, 0x1000 Kernel Mode
26
// 28 bytes of module name, packed with 0's.
28
u32_le gp; // ptr to MIPS GOT data (global offset table)
29
u32_le libent; // ptr to .lib.ent section
30
u32_le libentend; // ptr to end of .lib.ent section
31
u32_le libstub; // ptr to .lib.stub section
32
u32_le libstubend; // ptr to end of .lib.stub section
37
KernelObject *__KernelModuleObject();
38
void __KernelModuleDoState(PointerWrap &p);
39
void __KernelModuleShutdown();
41
u32 __KernelGetModuleGP(SceUID module);
42
bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_string);
43
void __KernelReturnFromModuleFunc();
44
u32 hleKernelStopUnloadSelfModuleWithOrWithoutStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr, bool WithStatus);
46
void Register_ModuleMgrForUser();
47
void Register_ModuleMgrForKernel();
b'\\ No newline at end of file'