summaryrefslogtreecommitdiff
path: root/firmware/rolo.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r--firmware/rolo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 0689e8be5b..0375a7ac82 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -49,8 +49,7 @@ void rolo_restart_cop(void) ICODE_ATTR;
49void rolo_restart_cop(void) 49void rolo_restart_cop(void)
50{ 50{
51 /* Invalidate cache */ 51 /* Invalidate cache */
52 outl(inl(0xf000f044) | 0x6, 0xf000f044); 52 invalidate_icache();
53 while ((CACHE_CTL & 0x8000) != 0) {}
54 53
55 /* Disable cache */ 54 /* Disable cache */
56 CACHE_CTL = CACHE_DISABLE; 55 CACHE_CTL = CACHE_DISABLE;
@@ -119,8 +118,7 @@ void rolo_restart(const unsigned char* source, unsigned char* dest,
119 cpu_message = 0; 118 cpu_message = 0;
120 119
121 /* Flush cache */ 120 /* Flush cache */
122 outl(inl(0xf000f044) | 0x2, 0xf000f044); 121 flush_icache();
123 while ((CACHE_CTL & 0x8000) != 0) {}
124 122
125 /* Disable cache */ 123 /* Disable cache */
126 CACHE_CTL = CACHE_DISABLE; 124 CACHE_CTL = CACHE_DISABLE;