PhysicalMemory is now singleton

This commit is contained in:
georgemoralis 2023-08-02 08:04:09 +03:00
parent dcac8c1661
commit 7bc4fda33e
2 changed files with 10 additions and 3 deletions

View file

@ -4,12 +4,15 @@
#include "../../../Debug.h"
#include "../../../Util/Log.h"
#include "Kernel/MemoryManagement.h"
#include "Kernel/PhysicalMemory.h"
#include "../../../Util/Singleton.h"
namespace HLE::Libs::LibKernel {
static u64 g_stack_chk_guard = 0xDEADBEEF54321ABC; //dummy return
int32_t PS4_SYSV_ABI sceKernelMapDirectMemory(void** addr, size_t len, int prot, int flags, off_t directMemoryStart, size_t alignment) {
auto* physical_memory = Singleton<HLE::Libs::LibKernel::MemoryManagement::PhysicalMemory>::Instance();
BREAKPOINT();
return 0;
}