diff options
author | Sergi Granell | 2017-02-16 12:07:17 +0100 |
---|---|---|
committer | Sergi Granell | 2017-02-16 12:07:17 +0100 |
commit | 38f562ce5ef5e9e89ca2af1187582b3a7bb6f250 (patch) | |
tree | 1f18a5504de9e0d7e5ecb886c7fd03a2b5d12bcf | |
parent | Add more cache NIDs (diff) | |
download | vds-libraries-38f562ce5ef5e9e89ca2af1187582b3a7bb6f250.tar.gz |
Even more cache NIDs
-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 |