summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-17 18:49:51 -0400
committerLioncash <mathew1800@gmail.com>2018-09-17 23:27:53 -0400
commitb6867602ca5accf84b5e1f9d4895b232c9448816 (patch)
tree1fa3c3b8972f6d795197fd6ad73afa0f0f982ba6 /src/core/gdbstub/gdbstub.cpp
parenta94b623dfb6f151dfa9c0a62ad30368a9c8058c2 (diff)
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 'src/core/gdbstub/gdbstub.cpp')
0 files changed, 0 insertions, 0 deletions