[NDM] Stub ResumeScheduler

This commit is contained in:
wheremyfoodat 2023-01-29 17:50:46 +02:00
parent c3b2699d47
commit f7824774eb
2 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,7 @@ class NDMService {
// Service commands
void overrideDefaultDaemons(u32 messagePointer);
void resumeScheduler(u32 messagePointer);
void suspendDaemons(u32 messagePointer);
void suspendScheduler(u32 messagePointer);

View file

@ -4,7 +4,8 @@ namespace NDMCommands {
enum : u32 {
OverrideDefaultDaemons = 0x00140040,
SuspendDaemons = 0x00060040,
SuspendScheduler = 0x00080040
SuspendScheduler = 0x00080040,
ResumeScheduler = 0x00090000
};
}
@ -20,6 +21,7 @@ void NDMService::handleSyncRequest(u32 messagePointer) {
const u32 command = mem.read32(messagePointer);
switch (command) {
case NDMCommands::OverrideDefaultDaemons: overrideDefaultDaemons(messagePointer); break;
case NDMCommands::ResumeScheduler: resumeScheduler(messagePointer); break;
case NDMCommands::SuspendDaemons: suspendDaemons(messagePointer); break;
case NDMCommands::SuspendScheduler: suspendScheduler(messagePointer); break;
default: Helpers::panic("NDM service requested. Command: %08X\n", command);
@ -36,6 +38,11 @@ void NDMService::suspendDaemons(u32 messagePointer) {
mem.write32(messagePointer + 4, Result::Success);
}
void NDMService::resumeScheduler(u32 messagePointer) {
log("NDM::ResumeScheduler(stubbed)\n");
mem.write32(messagePointer + 4, Result::Success);
}
void NDMService::suspendScheduler(u32 messagePointer) {
log("NDM::SuspendScheduler(stubbed)\n");
mem.write32(messagePointer + 4, Result::Success);