Skip to content

Commit 55ccec4

Browse files
committed
fix typos
1 parent c977011 commit 55ccec4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/libraries/kernel/memory.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,13 +505,13 @@ int PS4_SYSV_ABI posix_munmap(void* addr, size_t len) {
505505
return result;
506506
}
507507

508-
static constexpr int MAX_PTR_APERTURES = 3;
508+
static constexpr int MAX_PRT_APERTURES = 3;
509509
static constexpr VAddr PRT_AREA_START_ADDR = 0x1000000000;
510510
static constexpr size_t PRT_AREA_SIZE = 0xec00000000;
511-
static std::array<std::pair<VAddr, size_t>, MAX_PTR_APERTURES> PrtApertures{};
511+
static std::array<std::pair<VAddr, size_t>, MAX_PRT_APERTURES> PrtApertures{};
512512

513513
int PS4_SYSV_ABI sceKernelSetPrtAperture(int id, VAddr address, size_t size) {
514-
if (id < 0 || id >= MAX_PTR_APERTURES) {
514+
if (id < 0 || id >= MAX_PRT_APERTURES) {
515515
return ORBIS_KERNEL_ERROR_EINVAL;
516516
}
517517

@@ -531,12 +531,12 @@ int PS4_SYSV_ABI sceKernelSetPrtAperture(int id, VAddr address, size_t size) {
531531
return ORBIS_OK;
532532
}
533533

534-
int PS4_SYSV_ABI sceKernelGetPrtAperture(int id, VAddr* addres, size_t* size) {
535-
if (id < 0 || id >= MAX_PTR_APERTURES) {
534+
int PS4_SYSV_ABI sceKernelGetPrtAperture(int id, VAddr* address, size_t* size) {
535+
if (id < 0 || id >= MAX_PRT_APERTURES) {
536536
return ORBIS_KERNEL_ERROR_EINVAL;
537537
}
538538

539-
std::tie(*addres, *size) = PrtApertures[id];
539+
std::tie(*address, *size) = PrtApertures[id];
540540
return ORBIS_OK;
541541
}
542542

0 commit comments

Comments
 (0)