diff options
-rw-r--r-- | include/kernel/kernel/cpu.h | 21 | ||||
-rw-r--r-- | nids/360/SceSysmem.yml | 3 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/kernel/kernel/cpu.h b/include/kernel/kernel/cpu.h index c8c3d5e..96f51fe 100644 --- a/include/kernel/kernel/cpu.h +++ b/include/kernel/kernel/cpu.h @@ -110,6 +110,27 @@ int sceKernelCpuDcacheInvalidateRange(void *ptr, size_t len); int sceKernelCpuDcacheWritebackInvalidateRange(void *ptr, size_t len); /** + * @brief Invalidate all the L1 dcache (without L2) + * + * @return Zero on success + */ +int sceKernelCpuDcacheInvalidateAll(void); + +/** + * @brief Writeback all the L1 dcache (without L2) + * + * @return Zero on success + */ +int sceKernelCpuDcacheWritebackAll(void); + +/** + * @brief Writeback and invalidate all the L1 dcache (without L2) + * + * @return Zero on success + */ +int sceKernelCpuDcacheWritebackInvalidateAll(void); + +/** * @brief Writeback a range of L1 dcache and L2 * * @param ptr The pointer diff --git a/nids/360/SceSysmem.yml b/nids/360/SceSysmem.yml index 47013fb..a27cc0f 100644 --- a/nids/360/SceSysmem.yml +++ b/nids/360/SceSysmem.yml @@ -15,6 +15,9 @@ modules: SceCpuForKernel: nid: 0x54BF2BAB functions: + sceKernelCpuDcacheInvalidateAll: 0x2F3BF020 + sceKernelCpuDcacheWritebackAll: 0x73A30DB2 + sceKernelCpuDcacheWritebackInvalidateAll: 0x76DAB4D0 sceKernelCpuDcacheWritebackInvalidateRange: 0x6BA2E51C sceKernelCpuIcacheAndL2WritebackInvalidateRange: 0x19F17BD0 sceKernelCpuIcacheInvalidateAll: 0x264DA250 |