summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorSergi Granell2017-01-05 12:40:43 +0100
committerSergi Granell2017-01-05 12:42:14 +0100
commit81c16c447761afe6b6d3e8a0807907d7de22ca2e (patch)
tree57d3cb7bae755935009b57558bb094158d3bbff7 /include/kernel
parentFix ksceCtrlSetAnalogEmulation parameters (diff)
downloadvds-libraries-81c16c447761afe6b6d3e8a0807907d7de22ca2e.tar.gz
Add ksceKernelCpuDcacheWritebackRange NID
Diffstat (limited to '')
-rw-r--r--include/kernel/kernel/cpu.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/kernel/kernel/cpu.h b/include/kernel/kernel/cpu.h
index a961f86..859424d 100644
--- a/include/kernel/kernel/cpu.h
+++ b/include/kernel/kernel/cpu.h
@@ -81,7 +81,7 @@ int sceKernelCpuEnableInterrupts(int flags);
/**
* @brief Flush L1 dcache and L2
- *
+ *
* Note: symbols currently does not work on 3.x, need to find new ones.
*
* @param ptr The pointer
@@ -102,6 +102,16 @@ int sceKernelCpuDcacheAndL2Flush(void *ptr, size_t len);
int sceKernelCpuDcacheFlush(void *ptr, size_t len);
/**
+ * @brief Writeback a range of L1 dcache (not sure if L2 too)
+ *
+ * @param ptr The pointer
+ * @param[in] len The length
+ *
+ * @return Zero on success
+ */
+int sceKernelCpuDcacheWritebackRange(void *ptr, size_t len);
+
+/**
* @brief Flush L1 icache and L2
*
* @param ptr The pointer
@@ -123,7 +133,7 @@ int sceKernelCpuDcacheAndL2AndDMAFlush(void *ptr, size_t len);
/**
* @brief MMU permission bypassing memcpy
- *
+ *
* This works by writing to the DACR before and after the memcpy.
*
* @param dst The destination