aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-24 15:24:52 -0400
committerLioncash <mathew1800@gmail.com>2019-03-24 16:17:31 -0400
commit47b4582e89505899d294c66fbdd9ae68f9991444 (patch)
tree47daaae2ad06629fc4c636746cc39b6818441425 /src/common/thread.cpp
parent3ee41ee7e2c1cf5f46cf9783c8937b40b14814f9 (diff)
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.
Diffstat (limited to 'src/common/thread.cpp')
0 files changed, 0 insertions, 0 deletions