diff options
| author | 2018-09-17 18:49:51 -0400 | |
|---|---|---|
| committer | 2018-09-17 23:27:53 -0400 | |
| commit | b6867602ca5accf84b5e1f9d4895b232c9448816 (patch) | |
| tree | 1fa3c3b8972f6d795197fd6ad73afa0f0f982ba6 /externals/json/json.hpp | |
| parent | Merge pull request #1311 from FernandoS27/fast-swizzle (diff) | |
| download | yuzu-b6867602ca5accf84b5e1f9d4895b232c9448816.tar.gz yuzu-b6867602ca5accf84b5e1f9d4895b232c9448816.tar.xz yuzu-b6867602ca5accf84b5e1f9d4895b232c9448816.zip | |
kernel/svc: Handle error cases for svcArbitrateLock() and svcArbitrateUnlock()
The kernel does the equivalent of the following check before proceeding:
if (address + 0x8000000000 < 0x7FFFE00000) {
return ERR_INVALID_MEMORY_STATE;
}
which is essentially what our IsKernelVirtualAddress() function does. So
we should also be checking for this.
The kernel also checks if the given input addresses are 4-byte aligned,
however our Mutex::TryAcquire() and Mutex::Release() functions already
handle this, so we don't need to add code for this case.
Diffstat (limited to 'externals/json/json.hpp')
0 files changed, 0 insertions, 0 deletions