-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #566 from uyjulian/loadcore
Implementation of loadcore module
- Loading branch information
Showing
9 changed files
with
1,708 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ SUBDIRS = \ | |
ioman \ | ||
iomanx \ | ||
iopmgr \ | ||
loadcore \ | ||
loadfile \ | ||
modload \ | ||
mtapman \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# _____ ___ ____ ___ ____ | ||
# ____| | ____| | | |____| | ||
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. | ||
#----------------------------------------------------------------------- | ||
# Copyright ps2dev - http://www.ps2dev.org | ||
# Licenced under Academic Free License version 2.0 | ||
# Review ps2sdk README & LICENSE files for further details. | ||
|
||
IOP_BIN ?= loadcore.irx | ||
|
||
IOP_OBJS = loadcore.o exports.o imports.o | ||
|
||
include $(PS2SDKSRC)/Defs.make | ||
include $(PS2SDKSRC)/iop/Rules.bin.make | ||
include $(PS2SDKSRC)/iop/Rules.make | ||
include $(PS2SDKSRC)/iop/Rules.release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Module Manager | ||
|
||
This module provides functions to manage IRX modules. | ||
|
||
## Configurations | ||
|
||
There are multiple configurations of this library, allowing the choice of | ||
balancing between size, speed, and features. | ||
|
||
* `loadcore` -> The recommended version. | ||
|
||
## How to use this module in your program | ||
|
||
In order to use this module in your program, you must integrate the module into | ||
an IOPRP image, then load the image with `UDNL`.\ | ||
Using `LoadModule` or `LoadModuleBuffer` directly will not work, because the | ||
module is already loaded at IOP boot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
DECLARE_EXPORT_TABLE(loadcore, 1, 3) | ||
DECLARE_EXPORT(_start) | ||
DECLARE_EXPORT(_retonly) | ||
DECLARE_EXPORT(_retonly) | ||
DECLARE_EXPORT(GetLoadcoreInternalData) | ||
DECLARE_EXPORT(FlushIcache) | ||
DECLARE_EXPORT(FlushDcache) | ||
DECLARE_EXPORT(RegisterLibraryEntries) | ||
DECLARE_EXPORT(ReleaseLibraryEntries) | ||
DECLARE_EXPORT(LinkLibraryEntries) | ||
DECLARE_EXPORT(UnLinkLibraryEntries) | ||
DECLARE_EXPORT(RegisterNonAutoLinkEntries) | ||
DECLARE_EXPORT(QueryLibraryEntryTable) | ||
DECLARE_EXPORT(QueryBootMode) | ||
DECLARE_EXPORT(RegisterBootMode) | ||
DECLARE_EXPORT(LockLibraryClient) | ||
DECLARE_EXPORT(UnLockLibraryClient) | ||
DECLARE_EXPORT(RegisterModule) | ||
DECLARE_EXPORT(ReleaseModule) | ||
DECLARE_EXPORT(_retonly) | ||
DECLARE_EXPORT(_retonly) | ||
DECLARE_EXPORT(AddRebootNotifyHandler) | ||
DECLARE_EXPORT(SetCacheCtrl) | ||
DECLARE_EXPORT(ProbeExecutableObject) | ||
DECLARE_EXPORT(LoadExecutableObject) | ||
DECLARE_EXPORT(SearchModuleCBByAddr) | ||
DECLARE_EXPORT(ApplyElfRelSection) | ||
DECLARE_EXPORT(CopyModInfo) | ||
DECLARE_EXPORT(SetRebootTimeLibraryHandlingMode) | ||
END_EXPORT_TABLE | ||
|
||
void _retonly() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
sysmem_IMPORTS_start | ||
I_AllocSysMemory | ||
I_FreeSysMemory | ||
I_QueryMemSize | ||
I_QueryBlockTopAddress | ||
I_QueryBlockSize | ||
sysmem_IMPORTS_end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
# _____ ___ ____ ___ ____ | ||
# ____| | ____| | | |____| | ||
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. | ||
#----------------------------------------------------------------------- | ||
# Copyright ps2dev - http://www.ps2dev.org | ||
# Licenced under Academic Free License version 2.0 | ||
# Review ps2sdk README & LICENSE files for further details. | ||
# | ||
# Defines all IRX imports. | ||
*/ | ||
|
||
#ifndef IOP_IRX_IMPORTS_H | ||
#define IOP_IRX_IMPORTS_H | ||
|
||
#include <irx.h> | ||
|
||
/* Please keep these in alphabetical order! */ | ||
|
||
#include <sysmem.h> | ||
|
||
#endif /* IOP_IRX_IMPORTS_H */ |
Oops, something went wrong.