mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-10 13:42:23 +00:00
memmap.c - Cleanup
This commit is contained in:
parent
e6fa079cd9
commit
f7a5479778
@ -150,7 +150,6 @@ int mprotect(void *addr, size_t len, int prot)
|
|||||||
int memsync(void *start, void *end)
|
int memsync(void *start, void *end)
|
||||||
{
|
{
|
||||||
size_t len = (char*)end - (char*)start;
|
size_t len = (char*)end - (char*)start;
|
||||||
(void)len;
|
|
||||||
#if defined(__MACH__) && defined(__arm__)
|
#if defined(__MACH__) && defined(__arm__)
|
||||||
sys_dcache_flush(start ,len);
|
sys_dcache_flush(start ,len);
|
||||||
sys_icache_invalidate(start, len);
|
sys_icache_invalidate(start, len);
|
||||||
@ -165,6 +164,7 @@ int memsync(void *start, void *end)
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
|
(void)len;
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user