Skip to content

Commit

Permalink
Merge pull request #823 from Princess-of-Sleeping/master
Browse files Browse the repository at this point in the history
Fixed sceKernelDomainTextMemcpy align
  • Loading branch information
Princess-of-Sleeping authored Nov 11, 2023
2 parents 2616975 + 435d6bc commit dcebd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/psp2kern/kernel/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit dcebd70

Please sign in to comment.