mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-08 08:12:57 +12:00
Temporarily give 80MB to all processes (#715)
This commit is contained in:
parent
54a78902bc
commit
86d1bde845
5 changed files with 14 additions and 5 deletions
|
@ -122,7 +122,10 @@ void Kernel::mapMemoryBlock() {
|
|||
}
|
||||
|
||||
if (KernelHandles::isSharedMemHandle(block)) {
|
||||
if (block == KernelHandles::FontSharedMemHandle && addr == 0) addr = 0x18000000;
|
||||
if (block == KernelHandles::FontSharedMemHandle && addr == 0) {
|
||||
addr = getSharedFontVaddr();
|
||||
}
|
||||
|
||||
u8* ptr = mem.mapSharedMemory(block, addr, myPerms, otherPerms); // Map shared memory block
|
||||
|
||||
// Pass pointer to shared memory to the appropriate service
|
||||
|
@ -216,3 +219,8 @@ void Kernel::unmapMemoryBlock() {
|
|||
Helpers::warn("Stubbed svcUnmapMemoryBlock!");
|
||||
regs[0] = Result::Success;
|
||||
}
|
||||
|
||||
u32 Kernel::getSharedFontVaddr() {
|
||||
// Place shared font at the very beginning of system FCRAM
|
||||
return mem.getLinearHeapVaddr() + Memory::FCRAM_APPLICATION_SIZE;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue