mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
svc: Stub out svcGetCurrentProcessorNumber.
This commit is contained in:
parent
c7983e970c
commit
283c63645d
1 changed files with 7 additions and 1 deletions
|
@ -184,6 +184,12 @@ static ResultCode SetThreadPriority(Handle handle, u32 priority) {
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get which CPU core is executing the current thread
|
||||||
|
static u32 GetCurrentProcessorNumber() {
|
||||||
|
LOG_WARNING(Kernel_SVC, "(STUBBED) called, defaulting to processor 0");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/// Query process memory
|
/// Query process memory
|
||||||
static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_info*/,
|
static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_info*/,
|
||||||
Kernel::Handle process_handle, u64 addr) {
|
Kernel::Handle process_handle, u64 addr) {
|
||||||
|
@ -289,7 +295,7 @@ static const FunctionDef SVC_Table[] = {
|
||||||
{0x0D, HLE::Wrap<SetThreadPriority>, "svcSetThreadPriority"},
|
{0x0D, HLE::Wrap<SetThreadPriority>, "svcSetThreadPriority"},
|
||||||
{0x0E, nullptr, "svcGetThreadCoreMask"},
|
{0x0E, nullptr, "svcGetThreadCoreMask"},
|
||||||
{0x0F, nullptr, "svcSetThreadCoreMask"},
|
{0x0F, nullptr, "svcSetThreadCoreMask"},
|
||||||
{0x10, nullptr, "svcGetCurrentProcessorNumber"},
|
{0x10, HLE::Wrap<GetCurrentProcessorNumber>, "svcGetCurrentProcessorNumber"},
|
||||||
{0x11, nullptr, "svcSignalEvent"},
|
{0x11, nullptr, "svcSignalEvent"},
|
||||||
{0x12, nullptr, "svcClearEvent"},
|
{0x12, nullptr, "svcClearEvent"},
|
||||||
{0x13, nullptr, "svcMapSharedMemory"},
|
{0x13, nullptr, "svcMapSharedMemory"},
|
||||||
|
|
Loading…
Reference in a new issue