1
0
Fork 0
forked from suyu/suyu
suyu/src/core/hle/kernel
Lioncash 4f8756edd0 kernel/svc: Sanitize creation of shared memory via svcCreateSharedMemory()
The kernel caps the size limit of shared memory to 8589930496 bytes (or
(1GB - 512 bytes) * 8), so approximately 8GB, where every GB has a 512
byte sector taken off of it.

It also ensures the shared memory is created with either read or
read/write permissions for both permission types passed in, allowing the
remote permissions to also be set as "don't care".
2018-09-13 23:07:27 -04:00
..
address_arbiter.cpp core/core: Replace includes with forward declarations where applicable 2018-08-31 16:30:14 -04:00
address_arbiter.h kernel: Remove unnecessary includes 2018-07-31 10:15:17 -04:00
client_port.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
client_port.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
client_session.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
client_session.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
errors.h kernel/svc: Sanitize heap sizes within svcSetHeapSize() 2018-09-13 21:34:48 -04:00
event.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
event.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
handle_table.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
handle_table.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
hle_ipc.cpp core/core: Replace includes with forward declarations where applicable 2018-08-31 16:30:14 -04:00
hle_ipc.h hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const 2018-08-09 02:51:38 -04:00
kernel.cpp core: Migrate current_process pointer to the kernel 2018-09-06 20:52:58 -04:00
kernel.h core: Migrate current_process pointer to the kernel 2018-09-06 20:52:58 -04:00
mutex.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
mutex.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
object.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
object.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
process.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
process.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
resource_limit.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
resource_limit.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
scheduler.cpp core: Namespace all code in the arm subdirectory under the Core namespace 2018-08-24 21:50:39 -04:00
scheduler.h core: Namespace all code in the arm subdirectory under the Core namespace 2018-08-24 21:50:39 -04:00
server_port.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
server_port.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
server_session.cpp core/core: Replace includes with forward declarations where applicable 2018-08-31 16:30:14 -04:00
server_session.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
session.cpp Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
session.h kernel: Move object class to its own source files 2018-08-01 23:34:42 -04:00
shared_memory.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
shared_memory.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
svc.cpp kernel/svc: Sanitize creation of shared memory via svcCreateSharedMemory() 2018-09-13 23:07:27 -04:00
svc.h Add & correct miscellaneous things (#470) 2018-05-25 22:31:54 -04:00
svc_wrap.h svc: Correct parameter type for OutputDebugString() 2018-09-12 04:49:11 -04:00
thread.cpp kernel/errors: Correct error codes for invalid thread priority and invalid processor ID 2018-09-12 05:19:57 -04:00
thread.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
timer.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
timer.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
vm_manager.cpp kernel/vm_manager: Convert loop into std::any_of() 2018-08-02 12:46:15 -04:00
vm_manager.h kernel/vm_manager: Use const where applicable 2018-08-02 12:21:46 -04:00
wait_object.cpp kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00
wait_object.h kernel: Eliminate kernel global state 2018-08-28 22:31:51 -04:00