summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 85899f83c..12cfdcf2c 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -27,6 +27,7 @@
27#include "core/hle/kernel/k_address_arbiter.h" 27#include "core/hle/kernel/k_address_arbiter.h"
28#include "core/hle/kernel/k_condition_variable.h" 28#include "core/hle/kernel/k_condition_variable.h"
29#include "core/hle/kernel/k_event.h" 29#include "core/hle/kernel/k_event.h"
30#include "core/hle/kernel/k_memory_layout.h"
30#include "core/hle/kernel/k_readable_event.h" 31#include "core/hle/kernel/k_readable_event.h"
31#include "core/hle/kernel/k_resource_limit.h" 32#include "core/hle/kernel/k_resource_limit.h"
32#include "core/hle/kernel/k_scheduler.h" 33#include "core/hle/kernel/k_scheduler.h"
@@ -38,7 +39,6 @@
38#include "core/hle/kernel/k_writable_event.h" 39#include "core/hle/kernel/k_writable_event.h"
39#include "core/hle/kernel/kernel.h" 40#include "core/hle/kernel/kernel.h"
40#include "core/hle/kernel/memory/memory_block.h" 41#include "core/hle/kernel/memory/memory_block.h"
41#include "core/hle/kernel/memory/memory_layout.h"
42#include "core/hle/kernel/memory/page_table.h" 42#include "core/hle/kernel/memory/page_table.h"
43#include "core/hle/kernel/physical_core.h" 43#include "core/hle/kernel/physical_core.h"
44#include "core/hle/kernel/process.h" 44#include "core/hle/kernel/process.h"
@@ -508,7 +508,7 @@ static ResultCode ArbitrateLock(Core::System& system, Handle thread_handle, VAdd
508 thread_handle, address, tag); 508 thread_handle, address, tag);
509 509
510 // Validate the input address. 510 // Validate the input address.
511 if (Memory::IsKernelAddress(address)) { 511 if (IsKernelAddress(address)) {
512 LOG_ERROR(Kernel_SVC, "Attempting to arbitrate a lock on a kernel address (address={:08X})", 512 LOG_ERROR(Kernel_SVC, "Attempting to arbitrate a lock on a kernel address (address={:08X})",
513 address); 513 address);
514 return ResultInvalidCurrentMemory; 514 return ResultInvalidCurrentMemory;
@@ -531,8 +531,7 @@ static ResultCode ArbitrateUnlock(Core::System& system, VAddr address) {
531 LOG_TRACE(Kernel_SVC, "called address=0x{:X}", address); 531 LOG_TRACE(Kernel_SVC, "called address=0x{:X}", address);
532 532
533 // Validate the input address. 533 // Validate the input address.
534 534 if (IsKernelAddress(address)) {
535 if (Memory::IsKernelAddress(address)) {
536 LOG_ERROR(Kernel_SVC, 535 LOG_ERROR(Kernel_SVC,
537 "Attempting to arbitrate an unlock on a kernel address (address={:08X})", 536 "Attempting to arbitrate an unlock on a kernel address (address={:08X})",
538 address); 537 address);
@@ -1638,7 +1637,7 @@ static ResultCode WaitProcessWideKeyAtomic(Core::System& system, VAddr address,
1638 cv_key, tag, timeout_ns); 1637 cv_key, tag, timeout_ns);
1639 1638
1640 // Validate input. 1639 // Validate input.
1641 if (Memory::IsKernelAddress(address)) { 1640 if (IsKernelAddress(address)) {
1642 LOG_ERROR(Kernel_SVC, "Attempted to wait on kernel address (address={:08X})", address); 1641 LOG_ERROR(Kernel_SVC, "Attempted to wait on kernel address (address={:08X})", address);
1643 return ResultInvalidCurrentMemory; 1642 return ResultInvalidCurrentMemory;
1644 } 1643 }
@@ -1720,7 +1719,7 @@ static ResultCode WaitForAddress(Core::System& system, VAddr address, Svc::Arbit
1720 address, arb_type, value, timeout_ns); 1719 address, arb_type, value, timeout_ns);
1721 1720
1722 // Validate input. 1721 // Validate input.
1723 if (Memory::IsKernelAddress(address)) { 1722 if (IsKernelAddress(address)) {
1724 LOG_ERROR(Kernel_SVC, "Attempting to wait on kernel address (address={:08X})", address); 1723 LOG_ERROR(Kernel_SVC, "Attempting to wait on kernel address (address={:08X})", address);
1725 return ResultInvalidCurrentMemory; 1724 return ResultInvalidCurrentMemory;
1726 } 1725 }
@@ -1765,7 +1764,7 @@ static ResultCode SignalToAddress(Core::System& system, VAddr address, Svc::Sign
1765 address, signal_type, value, count); 1764 address, signal_type, value, count);
1766 1765
1767 // Validate input. 1766 // Validate input.
1768 if (Memory::IsKernelAddress(address)) { 1767 if (IsKernelAddress(address)) {
1769 LOG_ERROR(Kernel_SVC, "Attempting to signal to a kernel address (address={:08X})", address); 1768 LOG_ERROR(Kernel_SVC, "Attempting to signal to a kernel address (address={:08X})", address);
1770 return ResultInvalidCurrentMemory; 1769 return ResultInvalidCurrentMemory;
1771 } 1770 }