kernel/shared_memory: Use 64-bit types for offset and size in CreateForApplet
Keeps the interface consistent with the regular Create() function.
This commit is contained in:
parent
76ac234bf6
commit
2d37ca3726
@ -61,7 +61,7 @@ SharedPtr<SharedMemory> SharedMemory::Create(KernelCore& kernel, SharedPtr<Proce
|
|||||||
}
|
}
|
||||||
|
|
||||||
SharedPtr<SharedMemory> SharedMemory::CreateForApplet(
|
SharedPtr<SharedMemory> SharedMemory::CreateForApplet(
|
||||||
KernelCore& kernel, std::shared_ptr<std::vector<u8>> heap_block, u32 offset, u32 size,
|
KernelCore& kernel, std::shared_ptr<std::vector<u8>> heap_block, std::size_t offset, u64 size,
|
||||||
MemoryPermission permissions, MemoryPermission other_permissions, std::string name) {
|
MemoryPermission permissions, MemoryPermission other_permissions, std::string name) {
|
||||||
SharedPtr<SharedMemory> shared_memory(new SharedMemory(kernel));
|
SharedPtr<SharedMemory> shared_memory(new SharedMemory(kernel));
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
static SharedPtr<SharedMemory> CreateForApplet(KernelCore& kernel,
|
static SharedPtr<SharedMemory> CreateForApplet(KernelCore& kernel,
|
||||||
std::shared_ptr<std::vector<u8>> heap_block,
|
std::shared_ptr<std::vector<u8>> heap_block,
|
||||||
u32 offset, u32 size,
|
std::size_t offset, u64 size,
|
||||||
MemoryPermission permissions,
|
MemoryPermission permissions,
|
||||||
MemoryPermission other_permissions,
|
MemoryPermission other_permissions,
|
||||||
std::string name = "Unknown Applet");
|
std::string name = "Unknown Applet");
|
||||||
|
Loading…
Reference in New Issue
Block a user