mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-30 23:24:19 +01:00
Fix AHBMemFlush
This commit is contained in:
parent
b066d87b66
commit
ac5818b466
4
memory.c
4
memory.c
@ -150,7 +150,7 @@ void ahb_memflush(enum AHBDEV dev)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
write32(MEM_FLUSHREQ, req);
|
write16(MEM_FLUSHREQ, req);
|
||||||
|
|
||||||
for(i=0;i<1000000;i++) {
|
for(i=0;i<1000000;i++) {
|
||||||
ack = read16(MEM_FLUSHACK);
|
ack = read16(MEM_FLUSHACK);
|
||||||
@ -158,7 +158,7 @@ void ahb_memflush(enum AHBDEV dev)
|
|||||||
if(ack == req)
|
if(ack == req)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
write32(MEM_FLUSHREQ, 0);
|
write16(MEM_FLUSHREQ, 0);
|
||||||
if(i>=1000000) {
|
if(i>=1000000) {
|
||||||
gecko_printf("ahb_memflush(%d): Flush (0x%x) did not ack!\n", dev, req);
|
gecko_printf("ahb_memflush(%d): Flush (0x%x) did not ack!\n", dev, req);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user