diff options
| author | 2023-02-21 18:58:04 -0500 | |
|---|---|---|
| committer | 2023-02-21 18:58:04 -0500 | |
| commit | 11f6bb153251462bf55afa59ba99b98f9c9ecaa1 (patch) | |
| tree | 22a1c190d8ce59d7cb7599c1a8cf6dfbdfe53eea /src/core/hle/kernel/svc | |
| parent | Merge pull request #9841 from abouvier/httplib-update (diff) | |
| parent | svc: Fix type consistency (exposed on macOS) (diff) | |
| download | yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.gz yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.xz yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.zip | |
Merge pull request #9846 from merryhime/type-const
svc: Fix type consistency (exposed on macOS)
Diffstat (limited to 'src/core/hle/kernel/svc')
| -rw-r--r-- | src/core/hle/kernel/svc/svc_address_translation.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_cache.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_code_memory.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_debug.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_device_address_space.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_insecure_memory.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_io_pool.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_physical_memory.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_port.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc/svc_process_memory.cpp | 4 |
10 files changed, 34 insertions, 34 deletions
diff --git a/src/core/hle/kernel/svc/svc_address_translation.cpp b/src/core/hle/kernel/svc/svc_address_translation.cpp index c25e144cd..e65a11cda 100644 --- a/src/core/hle/kernel/svc/svc_address_translation.cpp +++ b/src/core/hle/kernel/svc/svc_address_translation.cpp | |||
| @@ -12,7 +12,7 @@ Result QueryPhysicalAddress(Core::System& system, lp64::PhysicalMemoryInfo* out_ | |||
| 12 | R_THROW(ResultNotImplemented); | 12 | R_THROW(ResultNotImplemented); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | Result QueryIoMapping(Core::System& system, uintptr_t* out_address, uintptr_t* out_size, | 15 | Result QueryIoMapping(Core::System& system, uint64_t* out_address, uint64_t* out_size, |
| 16 | uint64_t physical_address, uint64_t size) { | 16 | uint64_t physical_address, uint64_t size) { |
| 17 | UNIMPLEMENTED(); | 17 | UNIMPLEMENTED(); |
| 18 | R_THROW(ResultNotImplemented); | 18 | R_THROW(ResultNotImplemented); |
| @@ -23,7 +23,7 @@ Result QueryPhysicalAddress64(Core::System& system, lp64::PhysicalMemoryInfo* ou | |||
| 23 | R_RETURN(QueryPhysicalAddress(system, out_info, address)); | 23 | R_RETURN(QueryPhysicalAddress(system, out_info, address)); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | Result QueryIoMapping64(Core::System& system, uintptr_t* out_address, uintptr_t* out_size, | 26 | Result QueryIoMapping64(Core::System& system, uint64_t* out_address, uint64_t* out_size, |
| 27 | uint64_t physical_address, uint64_t size) { | 27 | uint64_t physical_address, uint64_t size) { |
| 28 | R_RETURN(QueryIoMapping(system, out_address, out_size, physical_address, size)); | 28 | R_RETURN(QueryIoMapping(system, out_address, out_size, physical_address, size)); |
| 29 | } | 29 | } |
| @@ -41,10 +41,10 @@ Result QueryPhysicalAddress64From32(Core::System& system, ilp32::PhysicalMemoryI | |||
| 41 | R_SUCCEED(); | 41 | R_SUCCEED(); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | Result QueryIoMapping64From32(Core::System& system, uintptr_t* out_address, uintptr_t* out_size, | 44 | Result QueryIoMapping64From32(Core::System& system, uint64_t* out_address, uint64_t* out_size, |
| 45 | uint64_t physical_address, uint32_t size) { | 45 | uint64_t physical_address, uint32_t size) { |
| 46 | R_RETURN(QueryIoMapping(system, reinterpret_cast<uintptr_t*>(out_address), | 46 | R_RETURN(QueryIoMapping(system, reinterpret_cast<uint64_t*>(out_address), |
| 47 | reinterpret_cast<uintptr_t*>(out_size), physical_address, size)); | 47 | reinterpret_cast<uint64_t*>(out_size), physical_address, size)); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | } // namespace Kernel::Svc | 50 | } // namespace Kernel::Svc |
diff --git a/src/core/hle/kernel/svc/svc_cache.cpp b/src/core/hle/kernel/svc/svc_cache.cpp index 598b71da5..1779832d3 100644 --- a/src/core/hle/kernel/svc/svc_cache.cpp +++ b/src/core/hle/kernel/svc/svc_cache.cpp | |||
| @@ -13,7 +13,7 @@ void FlushEntireDataCache(Core::System& system) { | |||
| 13 | UNIMPLEMENTED(); | 13 | UNIMPLEMENTED(); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | Result FlushDataCache(Core::System& system, VAddr address, size_t size) { | 16 | Result FlushDataCache(Core::System& system, uint64_t address, uint64_t size) { |
| 17 | UNIMPLEMENTED(); | 17 | UNIMPLEMENTED(); |
| 18 | R_THROW(ResultNotImplemented); | 18 | R_THROW(ResultNotImplemented); |
| 19 | } | 19 | } |
| @@ -33,8 +33,8 @@ Result StoreProcessDataCache(Core::System& system, Handle process_handle, uint64 | |||
| 33 | Result FlushProcessDataCache(Core::System& system, Handle process_handle, u64 address, u64 size) { | 33 | Result FlushProcessDataCache(Core::System& system, Handle process_handle, u64 address, u64 size) { |
| 34 | // Validate address/size. | 34 | // Validate address/size. |
| 35 | R_UNLESS(size > 0, ResultInvalidSize); | 35 | R_UNLESS(size > 0, ResultInvalidSize); |
| 36 | R_UNLESS(address == static_cast<uintptr_t>(address), ResultInvalidCurrentMemory); | 36 | R_UNLESS(address == static_cast<uint64_t>(address), ResultInvalidCurrentMemory); |
| 37 | R_UNLESS(size == static_cast<size_t>(size), ResultInvalidCurrentMemory); | 37 | R_UNLESS(size == static_cast<uint64_t>(size), ResultInvalidCurrentMemory); |
| 38 | 38 | ||
| 39 | // Get the process from its handle. | 39 | // Get the process from its handle. |
| 40 | KScopedAutoObject process = | 40 | KScopedAutoObject process = |
| @@ -53,7 +53,7 @@ void FlushEntireDataCache64(Core::System& system) { | |||
| 53 | FlushEntireDataCache(system); | 53 | FlushEntireDataCache(system); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | Result FlushDataCache64(Core::System& system, VAddr address, size_t size) { | 56 | Result FlushDataCache64(Core::System& system, uint64_t address, uint64_t size) { |
| 57 | R_RETURN(FlushDataCache(system, address, size)); | 57 | R_RETURN(FlushDataCache(system, address, size)); |
| 58 | } | 58 | } |
| 59 | 59 | ||
diff --git a/src/core/hle/kernel/svc/svc_code_memory.cpp b/src/core/hle/kernel/svc/svc_code_memory.cpp index 538ff1c71..8bed747af 100644 --- a/src/core/hle/kernel/svc/svc_code_memory.cpp +++ b/src/core/hle/kernel/svc/svc_code_memory.cpp | |||
| @@ -28,7 +28,7 @@ constexpr bool IsValidUnmapFromOwnerCodeMemoryPermission(MemoryPermission perm) | |||
| 28 | 28 | ||
| 29 | } // namespace | 29 | } // namespace |
| 30 | 30 | ||
| 31 | Result CreateCodeMemory(Core::System& system, Handle* out, VAddr address, size_t size) { | 31 | Result CreateCodeMemory(Core::System& system, Handle* out, VAddr address, uint64_t size) { |
| 32 | LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, size=0x{:X}", address, size); | 32 | LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, size=0x{:X}", address, size); |
| 33 | 33 | ||
| 34 | // Get kernel instance. | 34 | // Get kernel instance. |
| @@ -64,7 +64,7 @@ Result CreateCodeMemory(Core::System& system, Handle* out, VAddr address, size_t | |||
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, | 66 | Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, |
| 67 | CodeMemoryOperation operation, VAddr address, size_t size, | 67 | CodeMemoryOperation operation, VAddr address, uint64_t size, |
| 68 | MemoryPermission perm) { | 68 | MemoryPermission perm) { |
| 69 | 69 | ||
| 70 | LOG_TRACE(Kernel_SVC, | 70 | LOG_TRACE(Kernel_SVC, |
diff --git a/src/core/hle/kernel/svc/svc_debug.cpp b/src/core/hle/kernel/svc/svc_debug.cpp index a14050fa7..a4d1f700e 100644 --- a/src/core/hle/kernel/svc/svc_debug.cpp +++ b/src/core/hle/kernel/svc/svc_debug.cpp | |||
| @@ -45,19 +45,19 @@ Result SetDebugThreadContext(Core::System& system, Handle debug_handle, uint64_t | |||
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | Result QueryDebugProcessMemory(Core::System& system, uint64_t out_memory_info, | 47 | Result QueryDebugProcessMemory(Core::System& system, uint64_t out_memory_info, |
| 48 | PageInfo* out_page_info, Handle debug_handle, uintptr_t address) { | 48 | PageInfo* out_page_info, Handle process_handle, uint64_t address) { |
| 49 | UNIMPLEMENTED(); | 49 | UNIMPLEMENTED(); |
| 50 | R_THROW(ResultNotImplemented); | 50 | R_THROW(ResultNotImplemented); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | Result ReadDebugProcessMemory(Core::System& system, uintptr_t buffer, Handle debug_handle, | 53 | Result ReadDebugProcessMemory(Core::System& system, uint64_t buffer, Handle debug_handle, |
| 54 | uintptr_t address, size_t size) { | 54 | uint64_t address, uint64_t size) { |
| 55 | UNIMPLEMENTED(); | 55 | UNIMPLEMENTED(); |
| 56 | R_THROW(ResultNotImplemented); | 56 | R_THROW(ResultNotImplemented); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | Result WriteDebugProcessMemory(Core::System& system, Handle debug_handle, uintptr_t buffer, | 59 | Result WriteDebugProcessMemory(Core::System& system, Handle debug_handle, uint64_t buffer, |
| 60 | uintptr_t address, size_t size) { | 60 | uint64_t address, uint64_t size) { |
| 61 | UNIMPLEMENTED(); | 61 | UNIMPLEMENTED(); |
| 62 | R_THROW(ResultNotImplemented); | 62 | R_THROW(ResultNotImplemented); |
| 63 | } | 63 | } |
diff --git a/src/core/hle/kernel/svc/svc_device_address_space.cpp b/src/core/hle/kernel/svc/svc_device_address_space.cpp index f68c0e6a9..ec3143e67 100644 --- a/src/core/hle/kernel/svc/svc_device_address_space.cpp +++ b/src/core/hle/kernel/svc/svc_device_address_space.cpp | |||
| @@ -76,8 +76,8 @@ constexpr bool IsValidDeviceMemoryPermission(MemoryPermission device_perm) { | |||
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | Result MapDeviceAddressSpaceByForce(Core::System& system, Handle das_handle, Handle process_handle, | 78 | Result MapDeviceAddressSpaceByForce(Core::System& system, Handle das_handle, Handle process_handle, |
| 79 | uint64_t process_address, size_t size, uint64_t device_address, | 79 | uint64_t process_address, uint64_t size, |
| 80 | u32 option) { | 80 | uint64_t device_address, u32 option) { |
| 81 | // Decode the option. | 81 | // Decode the option. |
| 82 | const MapDeviceAddressSpaceOption option_pack{option}; | 82 | const MapDeviceAddressSpaceOption option_pack{option}; |
| 83 | const auto device_perm = option_pack.permission; | 83 | const auto device_perm = option_pack.permission; |
| @@ -90,7 +90,7 @@ Result MapDeviceAddressSpaceByForce(Core::System& system, Handle das_handle, Han | |||
| 90 | R_UNLESS(size > 0, ResultInvalidSize); | 90 | R_UNLESS(size > 0, ResultInvalidSize); |
| 91 | R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory); | 91 | R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory); |
| 92 | R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion); | 92 | R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion); |
| 93 | R_UNLESS((process_address == static_cast<uintptr_t>(process_address)), | 93 | R_UNLESS((process_address == static_cast<uint64_t>(process_address)), |
| 94 | ResultInvalidCurrentMemory); | 94 | ResultInvalidCurrentMemory); |
| 95 | R_UNLESS(IsValidDeviceMemoryPermission(device_perm), ResultInvalidNewMemoryPermission); | 95 | R_UNLESS(IsValidDeviceMemoryPermission(device_perm), ResultInvalidNewMemoryPermission); |
| 96 | R_UNLESS(reserved == 0, ResultInvalidEnumValue); | 96 | R_UNLESS(reserved == 0, ResultInvalidEnumValue); |
| @@ -116,8 +116,8 @@ Result MapDeviceAddressSpaceByForce(Core::System& system, Handle das_handle, Han | |||
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | Result MapDeviceAddressSpaceAligned(Core::System& system, Handle das_handle, Handle process_handle, | 118 | Result MapDeviceAddressSpaceAligned(Core::System& system, Handle das_handle, Handle process_handle, |
| 119 | uint64_t process_address, size_t size, uint64_t device_address, | 119 | uint64_t process_address, uint64_t size, |
| 120 | u32 option) { | 120 | uint64_t device_address, u32 option) { |
| 121 | // Decode the option. | 121 | // Decode the option. |
| 122 | const MapDeviceAddressSpaceOption option_pack{option}; | 122 | const MapDeviceAddressSpaceOption option_pack{option}; |
| 123 | const auto device_perm = option_pack.permission; | 123 | const auto device_perm = option_pack.permission; |
| @@ -131,7 +131,7 @@ Result MapDeviceAddressSpaceAligned(Core::System& system, Handle das_handle, Han | |||
| 131 | R_UNLESS(size > 0, ResultInvalidSize); | 131 | R_UNLESS(size > 0, ResultInvalidSize); |
| 132 | R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory); | 132 | R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory); |
| 133 | R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion); | 133 | R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion); |
| 134 | R_UNLESS((process_address == static_cast<uintptr_t>(process_address)), | 134 | R_UNLESS((process_address == static_cast<uint64_t>(process_address)), |
| 135 | ResultInvalidCurrentMemory); | 135 | ResultInvalidCurrentMemory); |
| 136 | R_UNLESS(IsValidDeviceMemoryPermission(device_perm), ResultInvalidNewMemoryPermission); | 136 | R_UNLESS(IsValidDeviceMemoryPermission(device_perm), ResultInvalidNewMemoryPermission); |
| 137 | R_UNLESS(reserved == 0, ResultInvalidEnumValue); | 137 | R_UNLESS(reserved == 0, ResultInvalidEnumValue); |
| @@ -157,7 +157,7 @@ Result MapDeviceAddressSpaceAligned(Core::System& system, Handle das_handle, Han | |||
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | Result UnmapDeviceAddressSpace(Core::System& system, Handle das_handle, Handle process_handle, | 159 | Result UnmapDeviceAddressSpace(Core::System& system, Handle das_handle, Handle process_handle, |
| 160 | uint64_t process_address, size_t size, uint64_t device_address) { | 160 | uint64_t process_address, uint64_t size, uint64_t device_address) { |
| 161 | // Validate input. | 161 | // Validate input. |
| 162 | R_UNLESS(Common::IsAligned(process_address, PageSize), ResultInvalidAddress); | 162 | R_UNLESS(Common::IsAligned(process_address, PageSize), ResultInvalidAddress); |
| 163 | R_UNLESS(Common::IsAligned(device_address, PageSize), ResultInvalidAddress); | 163 | R_UNLESS(Common::IsAligned(device_address, PageSize), ResultInvalidAddress); |
| @@ -165,7 +165,7 @@ Result UnmapDeviceAddressSpace(Core::System& system, Handle das_handle, Handle p | |||
| 165 | R_UNLESS(size > 0, ResultInvalidSize); | 165 | R_UNLESS(size > 0, ResultInvalidSize); |
| 166 | R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory); | 166 | R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory); |
| 167 | R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion); | 167 | R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion); |
| 168 | R_UNLESS((process_address == static_cast<uintptr_t>(process_address)), | 168 | R_UNLESS((process_address == static_cast<uint64_t>(process_address)), |
| 169 | ResultInvalidCurrentMemory); | 169 | ResultInvalidCurrentMemory); |
| 170 | 170 | ||
| 171 | // Get the device address space. | 171 | // Get the device address space. |
diff --git a/src/core/hle/kernel/svc/svc_insecure_memory.cpp b/src/core/hle/kernel/svc/svc_insecure_memory.cpp index 79882685d..00457c6bf 100644 --- a/src/core/hle/kernel/svc/svc_insecure_memory.cpp +++ b/src/core/hle/kernel/svc/svc_insecure_memory.cpp | |||
| @@ -6,12 +6,12 @@ | |||
| 6 | 6 | ||
| 7 | namespace Kernel::Svc { | 7 | namespace Kernel::Svc { |
| 8 | 8 | ||
| 9 | Result MapInsecureMemory(Core::System& system, uintptr_t address, size_t size) { | 9 | Result MapInsecureMemory(Core::System& system, uint64_t address, uint64_t size) { |
| 10 | UNIMPLEMENTED(); | 10 | UNIMPLEMENTED(); |
| 11 | R_THROW(ResultNotImplemented); | 11 | R_THROW(ResultNotImplemented); |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | Result UnmapInsecureMemory(Core::System& system, uintptr_t address, size_t size) { | 14 | Result UnmapInsecureMemory(Core::System& system, uint64_t address, uint64_t size) { |
| 15 | UNIMPLEMENTED(); | 15 | UNIMPLEMENTED(); |
| 16 | R_THROW(ResultNotImplemented); | 16 | R_THROW(ResultNotImplemented); |
| 17 | } | 17 | } |
diff --git a/src/core/hle/kernel/svc/svc_io_pool.cpp b/src/core/hle/kernel/svc/svc_io_pool.cpp index 33f3d69bf..f01817e24 100644 --- a/src/core/hle/kernel/svc/svc_io_pool.cpp +++ b/src/core/hle/kernel/svc/svc_io_pool.cpp | |||
| @@ -12,19 +12,19 @@ Result CreateIoPool(Core::System& system, Handle* out, IoPoolType pool_type) { | |||
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | Result CreateIoRegion(Core::System& system, Handle* out, Handle io_pool_handle, uint64_t phys_addr, | 14 | Result CreateIoRegion(Core::System& system, Handle* out, Handle io_pool_handle, uint64_t phys_addr, |
| 15 | size_t size, MemoryMapping mapping, MemoryPermission perm) { | 15 | uint64_t size, MemoryMapping mapping, MemoryPermission perm) { |
| 16 | UNIMPLEMENTED(); | 16 | UNIMPLEMENTED(); |
| 17 | R_THROW(ResultNotImplemented); | 17 | R_THROW(ResultNotImplemented); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | Result MapIoRegion(Core::System& system, Handle io_region_handle, uintptr_t address, size_t size, | 20 | Result MapIoRegion(Core::System& system, Handle io_region_handle, uint64_t address, uint64_t size, |
| 21 | MemoryPermission map_perm) { | 21 | MemoryPermission map_perm) { |
| 22 | UNIMPLEMENTED(); | 22 | UNIMPLEMENTED(); |
| 23 | R_THROW(ResultNotImplemented); | 23 | R_THROW(ResultNotImplemented); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | Result UnmapIoRegion(Core::System& system, Handle io_region_handle, uintptr_t address, | 26 | Result UnmapIoRegion(Core::System& system, Handle io_region_handle, uint64_t address, |
| 27 | size_t size) { | 27 | uint64_t size) { |
| 28 | UNIMPLEMENTED(); | 28 | UNIMPLEMENTED(); |
| 29 | R_THROW(ResultNotImplemented); | 29 | R_THROW(ResultNotImplemented); |
| 30 | } | 30 | } |
diff --git a/src/core/hle/kernel/svc/svc_physical_memory.cpp b/src/core/hle/kernel/svc/svc_physical_memory.cpp index a1f534454..ed6a624ac 100644 --- a/src/core/hle/kernel/svc/svc_physical_memory.cpp +++ b/src/core/hle/kernel/svc/svc_physical_memory.cpp | |||
| @@ -158,7 +158,7 @@ Result SetUnsafeLimit64(Core::System& system, uint64_t limit) { | |||
| 158 | R_RETURN(SetUnsafeLimit(system, limit)); | 158 | R_RETURN(SetUnsafeLimit(system, limit)); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | Result SetHeapSize64From32(Core::System& system, uintptr_t* out_address, uint32_t size) { | 161 | Result SetHeapSize64From32(Core::System& system, uint64_t* out_address, uint32_t size) { |
| 162 | R_RETURN(SetHeapSize(system, out_address, size)); | 162 | R_RETURN(SetHeapSize(system, out_address, size)); |
| 163 | } | 163 | } |
| 164 | 164 | ||
diff --git a/src/core/hle/kernel/svc/svc_port.cpp b/src/core/hle/kernel/svc/svc_port.cpp index 2f9bfcb52..0b5b4ba2b 100644 --- a/src/core/hle/kernel/svc/svc_port.cpp +++ b/src/core/hle/kernel/svc/svc_port.cpp | |||
| @@ -65,7 +65,7 @@ Result ConnectToNamedPort(Core::System& system, Handle* out, VAddr port_name_add | |||
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | Result CreatePort(Core::System& system, Handle* out_server, Handle* out_client, | 67 | Result CreatePort(Core::System& system, Handle* out_server, Handle* out_client, |
| 68 | int32_t max_sessions, bool is_light, uintptr_t name) { | 68 | int32_t max_sessions, bool is_light, uint64_t name) { |
| 69 | UNIMPLEMENTED(); | 69 | UNIMPLEMENTED(); |
| 70 | R_THROW(ResultNotImplemented); | 70 | R_THROW(ResultNotImplemented); |
| 71 | } | 71 | } |
diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp index 4dfd9e5bb..8e2fb4092 100644 --- a/src/core/hle/kernel/svc/svc_process_memory.cpp +++ b/src/core/hle/kernel/svc/svc_process_memory.cpp | |||
| @@ -37,8 +37,8 @@ Result SetProcessMemoryPermission(Core::System& system, Handle process_handle, V | |||
| 37 | R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize); | 37 | R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize); |
| 38 | R_UNLESS(size > 0, ResultInvalidSize); | 38 | R_UNLESS(size > 0, ResultInvalidSize); |
| 39 | R_UNLESS((address < address + size), ResultInvalidCurrentMemory); | 39 | R_UNLESS((address < address + size), ResultInvalidCurrentMemory); |
| 40 | R_UNLESS(address == static_cast<uintptr_t>(address), ResultInvalidCurrentMemory); | 40 | R_UNLESS(address == static_cast<uint64_t>(address), ResultInvalidCurrentMemory); |
| 41 | R_UNLESS(size == static_cast<size_t>(size), ResultInvalidCurrentMemory); | 41 | R_UNLESS(size == static_cast<uint64_t>(size), ResultInvalidCurrentMemory); |
| 42 | 42 | ||
| 43 | // Validate the memory permission. | 43 | // Validate the memory permission. |
| 44 | R_UNLESS(IsValidProcessMemoryPermission(perm), ResultInvalidNewMemoryPermission); | 44 | R_UNLESS(IsValidProcessMemoryPermission(perm), ResultInvalidNewMemoryPermission); |