From c949779b3ddb12e67029b0dc1041021084442142 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 29 Sep 2021 14:18:03 -0700 Subject: [PATCH] stratosphere: grant access to SynchronizePreemptionState --- stratosphere/LogManager/LogManager.json | 1 + stratosphere/TioServer/TioServer.json | 1 + stratosphere/ams_mitm/ams_mitm.json | 1 + stratosphere/boot/boot.json | 1 + stratosphere/boot2/boot2.json | 1 + stratosphere/creport/creport.json | 1 + stratosphere/cs/cs.json | 1 + stratosphere/dmnt.gen2/dmnt.gen2.json | 1 + stratosphere/dmnt/dmnt.json | 1 + stratosphere/eclct.stub/eclct.stub.json | 1 + stratosphere/erpt/erpt.json | 1 + stratosphere/fatal/fatal.json | 1 + stratosphere/htc/htc.json | 1 + stratosphere/jpegdec/jpegdec.json | 1 + stratosphere/loader/loader.json | 117 ++++++++++++------------ stratosphere/ncm/ncm.json | 1 + stratosphere/pgl/pgl.json | 1 + stratosphere/pm/pm.json | 1 + stratosphere/ro/ro.json | 1 + stratosphere/sm/sm.json | 3 +- stratosphere/spl/spl.json | 1 + 21 files changed, 80 insertions(+), 59 deletions(-) diff --git a/stratosphere/LogManager/LogManager.json b/stratosphere/LogManager/LogManager.json index 9fd3ea4b3..664666320 100644 --- a/stratosphere/LogManager/LogManager.json +++ b/stratosphere/LogManager/LogManager.json @@ -70,6 +70,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/TioServer/TioServer.json b/stratosphere/TioServer/TioServer.json index 05dea993b..c0feef16b 100644 --- a/stratosphere/TioServer/TioServer.json +++ b/stratosphere/TioServer/TioServer.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCallSecureMonitor": "0x7f" } }, { diff --git a/stratosphere/ams_mitm/ams_mitm.json b/stratosphere/ams_mitm/ams_mitm.json index 132eeee2c..8eae1c76f 100644 --- a/stratosphere/ams_mitm/ams_mitm.json +++ b/stratosphere/ams_mitm/ams_mitm.json @@ -58,6 +58,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/boot/boot.json b/stratosphere/boot/boot.json index 90375a00c..13391f732 100644 --- a/stratosphere/boot/boot.json +++ b/stratosphere/boot/boot.json @@ -58,6 +58,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcReadWriteRegister": "0x4E", "svcCreateInterruptEvent": "0x53", "svcQueryIoMapping": "0x55", diff --git a/stratosphere/boot2/boot2.json b/stratosphere/boot2/boot2.json index 5c83aba79..d30b7ebc1 100644 --- a/stratosphere/boot2/boot2.json +++ b/stratosphere/boot2/boot2.json @@ -73,6 +73,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/creport/creport.json b/stratosphere/creport/creport.json index ff014cbb7..cdd28371d 100644 --- a/stratosphere/creport/creport.json +++ b/stratosphere/creport/creport.json @@ -85,6 +85,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/cs/cs.json b/stratosphere/cs/cs.json index 3821cd88b..fc33a52a0 100644 --- a/stratosphere/cs/cs.json +++ b/stratosphere/cs/cs.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/dmnt.gen2/dmnt.gen2.json b/stratosphere/dmnt.gen2/dmnt.gen2.json index 675f0633e..510de6223 100644 --- a/stratosphere/dmnt.gen2/dmnt.gen2.json +++ b/stratosphere/dmnt.gen2/dmnt.gen2.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/dmnt/dmnt.json b/stratosphere/dmnt/dmnt.json index 3c8f403f9..ecd42b1ab 100644 --- a/stratosphere/dmnt/dmnt.json +++ b/stratosphere/dmnt/dmnt.json @@ -91,6 +91,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/eclct.stub/eclct.stub.json b/stratosphere/eclct.stub/eclct.stub.json index 70c563fb5..24404ad33 100644 --- a/stratosphere/eclct.stub/eclct.stub.json +++ b/stratosphere/eclct.stub/eclct.stub.json @@ -73,6 +73,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/erpt/erpt.json b/stratosphere/erpt/erpt.json index 3b5df1ddb..f848978ee 100644 --- a/stratosphere/erpt/erpt.json +++ b/stratosphere/erpt/erpt.json @@ -72,6 +72,7 @@ "svcWaitForAddress": "0x34", "svcGetResourceLimitLimitValue": "0x30", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcGetResourceLimitPeakValue": "0x37", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", diff --git a/stratosphere/fatal/fatal.json b/stratosphere/fatal/fatal.json index 6bb797e95..a0d6af694 100644 --- a/stratosphere/fatal/fatal.json +++ b/stratosphere/fatal/fatal.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/htc/htc.json b/stratosphere/htc/htc.json index 2bbde7bef..9e246c36c 100644 --- a/stratosphere/htc/htc.json +++ b/stratosphere/htc/htc.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/jpegdec/jpegdec.json b/stratosphere/jpegdec/jpegdec.json index 4ca5c6cea..9968c6b29 100644 --- a/stratosphere/jpegdec/jpegdec.json +++ b/stratosphere/jpegdec/jpegdec.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/loader/loader.json b/stratosphere/loader/loader.json index 8dc3e8bd6..49f61caf9 100644 --- a/stratosphere/loader/loader.json +++ b/stratosphere/loader/loader.json @@ -15,64 +15,65 @@ { "type": "syscalls", "value": { - "svcSetHeapSize" : "0x01", - "svcSetMemoryPermission" : "0x02", - "svcSetMemoryAttribute" : "0x03", - "svcMapMemory" : "0x04", - "svcUnmapMemory" : "0x05", - "svcQueryMemory" : "0x06", - "svcExitProcess" : "0x07", - "svcCreateThread" : "0x08", - "svcStartThread" : "0x09", - "svcExitThread" : "0x0A", - "svcSleepThread" : "0x0B", - "svcGetThreadPriority" : "0x0C", - "svcSetThreadPriority" : "0x0D", - "svcGetThreadCoreMask" : "0x0E", - "svcSetThreadCoreMask" : "0x0F", - "svcGetCurrentProcessorNumber" : "0x10", - "svcSignalEvent" : "0x11", - "svcClearEvent" : "0x12", - "svcMapSharedMemory" : "0x13", - "svcUnmapSharedMemory" : "0x14", - "svcCreateTransferMemory" : "0x15", - "svcCloseHandle" : "0x16", - "svcResetSignal" : "0x17", - "svcWaitSynchronization" : "0x18", - "svcCancelSynchronization" : "0x19", - "svcArbitrateLock" : "0x1A", - "svcArbitrateUnlock" : "0x1B", - "svcWaitProcessWideKeyAtomic" : "0x1C", - "svcSignalProcessWideKey" : "0x1D", - "svcGetSystemTick" : "0x1E", - "svcConnectToNamedPort" : "0x1F", - "svcSendSyncRequestLight" : "0x20", - "svcSendSyncRequest" : "0x21", - "svcSendSyncRequestWithUserBuffer" : "0x22", - "svcSendAsyncRequestWithUserBuffer" : "0x23", - "svcGetProcessId" : "0x24", - "svcGetThreadId" : "0x25", - "svcBreak" : "0x26", - "svcOutputDebugString" : "0x27", - "svcReturnFromException" : "0x28", - "svcGetInfo" : "0x29", - "svcWaitForAddress" : "0x34", - "svcSignalToAddress" : "0x35", - "svcCreateSession" : "0x40", - "svcAcceptSession" : "0x41", - "svcReplyAndReceiveLight" : "0x42", - "svcReplyAndReceive" : "0x43", - "svcReplyAndReceiveWithUserBuffer" : "0x44", - "svcCreateEvent" : "0x45", - "svcReadWriteRegister" : "0x4E", - "svcQueryIoMapping" : "0x55", - "svcSetProcessMemoryPermission" : "0x73", - "svcMapProcessMemory" : "0x74", - "svcUnmapProcessMemory" : "0x75", - "svcMapProcessCodeMemory" : "0x77", - "svcUnmapProcessCodeMemory" : "0x78", - "svcCreateProcess" : "0x79", - "svcCallSecureMonitor": "0x7F" + "svcSetHeapSize" : "0x01", + "svcSetMemoryPermission" : "0x02", + "svcSetMemoryAttribute" : "0x03", + "svcMapMemory" : "0x04", + "svcUnmapMemory" : "0x05", + "svcQueryMemory" : "0x06", + "svcExitProcess" : "0x07", + "svcCreateThread" : "0x08", + "svcStartThread" : "0x09", + "svcExitThread" : "0x0A", + "svcSleepThread" : "0x0B", + "svcGetThreadPriority" : "0x0C", + "svcSetThreadPriority" : "0x0D", + "svcGetThreadCoreMask" : "0x0E", + "svcSetThreadCoreMask" : "0x0F", + "svcGetCurrentProcessorNumber" : "0x10", + "svcSignalEvent" : "0x11", + "svcClearEvent" : "0x12", + "svcMapSharedMemory" : "0x13", + "svcUnmapSharedMemory" : "0x14", + "svcCreateTransferMemory" : "0x15", + "svcCloseHandle" : "0x16", + "svcResetSignal" : "0x17", + "svcWaitSynchronization" : "0x18", + "svcCancelSynchronization" : "0x19", + "svcArbitrateLock" : "0x1A", + "svcArbitrateUnlock" : "0x1B", + "svcWaitProcessWideKeyAtomic" : "0x1C", + "svcSignalProcessWideKey" : "0x1D", + "svcGetSystemTick" : "0x1E", + "svcConnectToNamedPort" : "0x1F", + "svcSendSyncRequestLight" : "0x20", + "svcSendSyncRequest" : "0x21", + "svcSendSyncRequestWithUserBuffer" : "0x22", + "svcSendAsyncRequestWithUserBuffer" : "0x23", + "svcGetProcessId" : "0x24", + "svcGetThreadId" : "0x25", + "svcBreak" : "0x26", + "svcOutputDebugString" : "0x27", + "svcReturnFromException" : "0x28", + "svcGetInfo" : "0x29", + "svcWaitForAddress" : "0x34", + "svcSignalToAddress" : "0x35", + "svcSynchronizePreemptionState" : "0x36", + "svcCreateSession" : "0x40", + "svcAcceptSession" : "0x41", + "svcReplyAndReceiveLight" : "0x42", + "svcReplyAndReceive" : "0x43", + "svcReplyAndReceiveWithUserBuffer" : "0x44", + "svcCreateEvent" : "0x45", + "svcReadWriteRegister" : "0x4E", + "svcQueryIoMapping" : "0x55", + "svcSetProcessMemoryPermission" : "0x73", + "svcMapProcessMemory" : "0x74", + "svcUnmapProcessMemory" : "0x75", + "svcMapProcessCodeMemory" : "0x77", + "svcUnmapProcessCodeMemory" : "0x78", + "svcCreateProcess" : "0x79", + "svcCallSecureMonitor" : "0x7F" } } ] diff --git a/stratosphere/ncm/ncm.json b/stratosphere/ncm/ncm.json index b0b54bebf..40a35d90f 100644 --- a/stratosphere/ncm/ncm.json +++ b/stratosphere/ncm/ncm.json @@ -57,6 +57,7 @@ "svcGetInfo" : "0x29", "svcWaitForAddress" : "0x34", "svcSignalToAddress" : "0x35", + "svcSynchronizePreemptionState" : "0x36", "svcCreateSession" : "0x40", "svcAcceptSession" : "0x41", "svcReplyAndReceiveLight" : "0x42", diff --git a/stratosphere/pgl/pgl.json b/stratosphere/pgl/pgl.json index 406469b0a..d1c4a257f 100644 --- a/stratosphere/pgl/pgl.json +++ b/stratosphere/pgl/pgl.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/pm/pm.json b/stratosphere/pm/pm.json index b05421b33..2f8e78cc2 100644 --- a/stratosphere/pm/pm.json +++ b/stratosphere/pm/pm.json @@ -60,6 +60,7 @@ "svcGetResourceLimitCurrentValue": "0x31", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/ro/ro.json b/stratosphere/ro/ro.json index 61f86b430..9a5b89f9f 100644 --- a/stratosphere/ro/ro.json +++ b/stratosphere/ro/ro.json @@ -71,6 +71,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42", diff --git a/stratosphere/sm/sm.json b/stratosphere/sm/sm.json index 2d7356458..d07b646f6 100644 --- a/stratosphere/sm/sm.json +++ b/stratosphere/sm/sm.json @@ -58,6 +58,7 @@ "svcGetInfo" : "0x29", "svcWaitForAddress" : "0x34", "svcSignalToAddress" : "0x35", + "svcSynchronizePreemptionState" : "0x36", "svcCreateSession" : "0x40", "svcAcceptSession" : "0x41", "svcReplyAndReceiveLight" : "0x42", @@ -68,7 +69,7 @@ "svcCreatePort" : "0x70", "svcManageNamedPort" : "0x71", "svcConnectToPort" : "0x72", - "svcCallSecureMonitor": "0x7F" + "svcCallSecureMonitor" : "0x7F" } } ] diff --git a/stratosphere/spl/spl.json b/stratosphere/spl/spl.json index 43e6f7b07..e5601a3c5 100644 --- a/stratosphere/spl/spl.json +++ b/stratosphere/spl/spl.json @@ -59,6 +59,7 @@ "svcGetInfo": "0x29", "svcWaitForAddress": "0x34", "svcSignalToAddress": "0x35", + "svcSynchronizePreemptionState": "0x36", "svcCreateSession": "0x40", "svcAcceptSession": "0x41", "svcReplyAndReceiveLight": "0x42",