2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
yuzu/src/core/hle
Lioncash 586cab6172 kernel/vm_manager: Tidy up heap allocation code
Another holdover from citra that can be tossed out is the notion of the
heap needing to be allocated in different addresses. On the switch, the
base address of the heap will always be managed by the memory allocator
in the kernel, so this doesn't need to be specified in the function's
interface itself.

The heap on the switch is always allocated with read/write permissions,
so we don't need to add specifying the memory permissions as part of the
heap allocation itself either.

This also corrects the error code returned from within the function.
If the size of the heap is larger than the entire heap region, then the
kernel will report an out of memory condition.
2019-03-24 16:17:31 -04:00
..
kernel kernel/vm_manager: Tidy up heap allocation code 2019-03-24 16:17:31 -04:00
service Merge pull request #2221 from DarkLordZach/firmware-version 2019-03-23 13:48:29 -04:00
ipc.h Merge pull request #2090 from FearlessTobi/port-4599 2019-03-20 23:44:20 -04:00
ipc_helpers.h ipc_helpers: Allow pushing and popping floating-point values 2019-03-16 14:05:03 -04:00
lock.cpp
lock.h
result.h core/hle/result: Remove now-unnecessary manually defined copy assignment operator 2019-03-10 18:34:20 -04:00