mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
20db83cd93
move package folders to wii and ngc respectively
19 lines
466 B
C
19 lines
466 B
C
// Copyright 2008-2009 Segher Boessenkool <segher@kernel.crashing.org>
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2;
|
|
// see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
|
|
#include <gctypes.h>
|
|
|
|
void sync_before_exec(const void *p, u32 len)
|
|
{
|
|
u32 a, b;
|
|
|
|
a = (u32)p & ~0x1f;
|
|
b = ((u32)p + len + 0x1f) & ~0x1f;
|
|
|
|
for ( ; a < b; a += 32)
|
|
asm("dcbst 0,%0 ; sync ; icbi 0,%0" : : "b"(a));
|
|
|
|
asm("sync ; isync");
|
|
}
|