From 11c5f50d37faf3ef798d5e6efb9d6324019c3f58 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Mon, 22 Feb 2021 00:10:18 +0530 Subject: [PATCH] Use likelihood attributes in NCE + Fix System Version + SVC improvements The SVCs improvements are as follows: * Make SVC logs more concise for: * * `SleepThread` * * `ClearEvent` * * `CloseHandle` * * `ResetSignal` * * `WaitSynchronization` (Special case for single handle) * * `ArbitrateLock` * * `ArbitrateUnlock` * * `WaitProcessWideKeyAtomic` * * `SignalProcessWideKey` * Fix unintentional fallthrough into `yieldWithoutCoreMigration` from `yieldWithCoreMigration` in `SleepThread` * Return `result::InvalidState` when an unsignalled handle is reset in `ResetSignal` * Return `Result{}` (Success) in `CancelSynchronization` * Do not return `result::InvalidCurrentMemory` in `ArbitrateLock` as it's not a failure condition * Make `count` in `WaitProcessWideKeyAtomic` a `i32` from a `u32`, zero and all negative values result in waking all waiters --- .idea/inspectionProfiles/Project_Default.xml | 5 +- app/src/main/cpp/skyline/kernel/svc.cpp | 64 ++++++++++--------- .../cpp/skyline/kernel/types/KProcess.cpp | 9 ++- .../main/cpp/skyline/kernel/types/KProcess.h | 2 +- .../cpp/skyline/kernel/types/KSyncObject.h | 11 +++- app/src/main/cpp/skyline/nce.cpp | 6 +- .../settings/ISystemSettingsServer.cpp | 2 +- 7 files changed, 55 insertions(+), 44 deletions(-) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index da936f8e..ef2d25b4 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -171,10 +171,7 @@ - - -