kernel/svc: Implement svcMapProcessCodeMemory

This is utilized for mapping code modules into memory. Notably, the
ldr service would call this in order to map objects into memory.
This commit is contained in:
Lioncash
2019-04-11 23:21:13 -04:00
parent ea80e2bc57
commit 76a2465655
4 changed files with 131 additions and 1 deletions

View File

@ -44,6 +44,13 @@ void SvcWrap(Core::System& system) {
func(system, static_cast<u32>(Param(system, 0)), static_cast<u32>(Param(system, 1))).raw);
}
template <ResultCode func(Core::System&, u32, u64, u64, u64)>
void SvcWrap(Core::System& system) {
FuncReturn(system, func(system, static_cast<u32>(Param(system, 0)), Param(system, 1),
Param(system, 2), Param(system, 3))
.raw);
}
template <ResultCode func(Core::System&, u32*)>
void SvcWrap(Core::System& system) {
u32 param = 0;