Commit 2093518d authored by alex@thinkpad's avatar alex@thinkpad
Browse files

fix index size in clean_d_cache

(todo: test in selftest.mo)

--HG--
branch : cache-fixes
parent b5f74749486f
......@@ -121,10 +121,12 @@ static inline void _flush_caches()
/* write back all data into RAM and mark as invalid in data cache */
static inline void clean_d_cache()
{
/* assume 8KB data cache */
/* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0092b/ch04s03s04.html */
uint32_t segment = 0;
do {
uint32_t line = 0;
for( ; line != 0x400 ; line += 0x20 )
for( ; line != 0x800 ; line += 0x20 )
{
asm(
"mcr p15, 0, %0, c7, c14, 2"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment