|
|
|
@ -331,8 +331,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
|
|
|
|
|
|
|
|
|
|
/// Sets the thread activity
|
|
|
|
|
static ResultCode SetThreadActivity(Handle handle, u32 unknown) {
|
|
|
|
|
LOG_WARNING(Kernel_SVC, "(STUBBED) called, handle=0x{:08X}, unknown=0x{:08X}", handle,
|
|
|
|
|
unknown);
|
|
|
|
|
LOG_WARNING(Kernel_SVC, "(STUBBED) called, handle=0x{:08X}, unknown=0x{:08X}", handle, unknown);
|
|
|
|
|
return RESULT_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -383,8 +382,7 @@ static u32 GetCurrentProcessorNumber() {
|
|
|
|
|
|
|
|
|
|
static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size,
|
|
|
|
|
u32 permissions) {
|
|
|
|
|
LOG_TRACE(
|
|
|
|
|
Kernel_SVC,
|
|
|
|
|
LOG_TRACE(Kernel_SVC,
|
|
|
|
|
"called, shared_memory_handle=0x{:X}, addr=0x{:X}, size=0x{:X}, permissions=0x{:08X}",
|
|
|
|
|
shared_memory_handle, addr, size, permissions);
|
|
|
|
|
|
|
|
|
@ -717,9 +715,8 @@ static ResultCode WaitForAddress(VAddr address, u32 type, s32 value, s64 timeout
|
|
|
|
|
|
|
|
|
|
// Signals to an address (via Address Arbiter)
|
|
|
|
|
static ResultCode SignalToAddress(VAddr address, u32 type, s32 value, s32 num_to_wake) {
|
|
|
|
|
LOG_WARNING(Kernel_SVC,
|
|
|
|
|
"called, address=0x{:X}, type=0x{:X}, value=0x{:X}, num_to_wake=0x{:X}", address,
|
|
|
|
|
type, value, num_to_wake);
|
|
|
|
|
LOG_WARNING(Kernel_SVC, "called, address=0x{:X}, type=0x{:X}, value=0x{:X}, num_to_wake=0x{:X}",
|
|
|
|
|
address, type, value, num_to_wake);
|
|
|
|
|
// If the passed address is a kernel virtual address, return invalid memory state.
|
|
|
|
|
if (Memory::IsKernelVirtualAddress(address)) {
|
|
|
|
|
return ERR_INVALID_ADDRESS_STATE;
|
|
|
|
@ -769,8 +766,8 @@ static ResultCode ResetSignal(Handle handle) {
|
|
|
|
|
|
|
|
|
|
/// Creates a TransferMemory object
|
|
|
|
|
static ResultCode CreateTransferMemory(Handle* handle, VAddr addr, u64 size, u32 permissions) {
|
|
|
|
|
LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x{:X}, size=0x{:X}, perms=0x{:08X}", addr,
|
|
|
|
|
size, permissions);
|
|
|
|
|
LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x{:X}, size=0x{:X}, perms=0x{:08X}", addr, size,
|
|
|
|
|
permissions);
|
|
|
|
|
*handle = 0;
|
|
|
|
|
return RESULT_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|