From 435d6bc6ee152920f56f96619936fef12de97edc Mon Sep 17 00:00:00 2001 From: Princess-of-Sleeping <29831892+Princess-of-Sleeping@users.noreply.github.com> Date: Sat, 11 Nov 2023 11:59:28 +0900 Subject: [PATCH] Fixed sceKernelDomainTextMemcpy align --- include/psp2kern/kernel/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/psp2kern/kernel/cpu.h b/include/psp2kern/kernel/cpu.h index 56ada64ba..8cd4b9ae5 100644 --- a/include/psp2kern/kernel/cpu.h +++ b/include/psp2kern/kernel/cpu.h @@ -93,7 +93,7 @@ static inline int ksceKernelDomainTextMemcpy(void *dst, const void *src, SceSize memcpy(dst, src, len); - ksceKernelDcacheCleanRangeForL1WBWA((void *)(((uintptr_t)dst) & ~0x1F), ((((uintptr_t)dst) + len + 0x1F) & ~0x1F) - (((uintptr_t)dst) & 0x1F)); + ksceKernelDcacheCleanRangeForL1WBWA((void *)(((uintptr_t)dst) & ~0x1F), ((((uintptr_t)dst) + len + 0x1F) & ~0x1F) - (((uintptr_t)dst) & ~0x1F)); asm volatile("mcr p15, 0, %0, c3, c0, 0" :: "r" (prev_dacr));