Merge branch 'master' into r0.5

This commit is contained in:
Joel Dice 2011-01-31 15:54:46 -07:00
commit 2a5e556e09

View File

@ -58,9 +58,11 @@ loadMemoryBarrier()
}
inline void
syncInstructionCache(const void* start UNUSED, unsigned size UNUSED)
syncInstructionCache(const void* start, unsigned size)
{
asm("nop");
__clear_cache
(const_cast<void*>(start),
const_cast<uint8_t*>(static_cast<const uint8_t*>(start) + size));
}
typedef int (__kernel_cmpxchg_t)(int oldval, int newval, int *ptr);