summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorSergi Granell2017-02-16 11:44:08 +0100
committerSergi Granell2017-02-16 11:44:08 +0100
commitce4a149044a9ec57ce477a94520c096a8baab78f (patch)
tree30e1c6dd5ddfb1a5f0c7bee10c260c4e4dbfc21b /include/kernel
parentAdd more SceThreadmgrForDriver NIDs (diff)
downloadvds-libraries-ce4a149044a9ec57ce477a94520c096a8baab78f.tar.gz
Add more cache NIDs
Diffstat (limited to 'include/kernel')
-rw-r--r--include/kernel/kernel/cpu.h37
1 files changed, 32 insertions, 5 deletions
diff --git a/include/kernel/kernel/cpu.h b/include/kernel/kernel/cpu.h
index a4262ef..c8c3d5e 100644
--- a/include/kernel/kernel/cpu.h
+++ b/include/kernel/kernel/cpu.h
@@ -90,6 +90,16 @@ int sceKernelCpuEnableInterrupts(int flags);
int sceKernelCpuDcacheWritebackRange(void *ptr, size_t len);
/**
+ * @brief Invalidate a range of L1 dcache (without L2)
+ *
+ * @param ptr The pointer
+ * @param[in] len The length
+ *
+ * @return Zero on success
+ */
+int sceKernelCpuDcacheInvalidateRange(void *ptr, size_t len);
+
+/**
* @brief Writeback and invalidate a range of L1 dcache (without L2)
*
* @param ptr The pointer
@@ -110,7 +120,7 @@ int sceKernelCpuDcacheWritebackInvalidateRange(void *ptr, size_t len);
int sceKernelCpuDcacheAndL2WritebackRange(void *ptr, size_t len);
/**
- * @brief Writeback and invalidate a range of L1 and L2 dcache
+ * @brief Writeback and invalidate a range of L1 dcache and L2
*
* @param ptr The pointer
* @param[in] len The length
@@ -120,24 +130,41 @@ int sceKernelCpuDcacheAndL2WritebackRange(void *ptr, size_t len);
int sceKernelCpuDcacheAndL2InvalidateRange(void *ptr, size_t len);
/**
- * @brief Writeback and invalidate a range of L1 icache and L2
+ * @brief Writeback and invalidate a range of L1 dcache and L2
*
* @param ptr The pointer
* @param[in] len The length
*
* @return Zero on success
*/
-int sceKernelCpuIcacheAndL2WritebackInvalidateRange(void *ptr, size_t len);
+int sceKernelCpuDcacheAndL2WritebackInvalidateRange(void *ptr, size_t len);
/**
- * @brief Writeback and invalidate a range of L1 dcache and L2
+ * @brief Invalidate a range of L1 icache (without L2)
*
* @param ptr The pointer
* @param[in] len The length
*
* @return Zero on success
*/
-int sceKernelCpuDcacheAndL2WritebackInvalidateRange(void *ptr, size_t len);
+int sceKernelCpuIcacheInvalidateRange(void *ptr, size_t len);
+
+/**
+ * @brief Invalidate all the L1 icache (without L2)
+ *
+ * @return Zero on success
+ */
+int sceKernelCpuIcacheInvalidateAll(void);
+
+/**
+ * @brief Writeback and invalidate a range of L1 icache and L2
+ *
+ * @param ptr The pointer
+ * @param[in] len The length
+ *
+ * @return Zero on success
+ */
+int sceKernelCpuIcacheAndL2WritebackInvalidateRange(void *ptr, size_t len);
/**
* @brief MMU permission bypassing memcpy