summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.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
commit586cab617270346c39ecfb340127e0b8edb863d3 (patch)
tree47daaae2ad06629fc4c636746cc39b6818441425 /src/input_common/sdl/sdl_impl.cpp
parent1665b70cc6f3b75982c454b04e827df1da2f0a76 (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/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions