Add memory barrier functions to the ARM bootloader.

This commit is contained in:
Michael Lotz 2012-11-27 20:22:42 +01:00
parent 0f434c4a95
commit 5db97b2668
2 changed files with 16 additions and 0 deletions

View File

@ -87,6 +87,20 @@ check_cpu_features()
} }
void
arch_cpu_memory_read_barrier(void)
{
asm volatile ("" : : : "memory");
}
void
arch_cpu_memory_write_barrier(void)
{
asm volatile ("" : : : "memory");
}
extern "C" void extern "C" void
arch_spin(bigtime_t microseconds) arch_spin(bigtime_t microseconds)
{ {

View File

@ -14,6 +14,8 @@ extern "C" {
#endif #endif
extern void arch_spin(bigtime_t microseconds); extern void arch_spin(bigtime_t microseconds);
extern void arch_cpu_memory_read_barrier(void);
extern void arch_cpu_memory_write_barrier(void);
extern status_t boot_arch_cpu_init(void); extern status_t boot_arch_cpu_init(void);
extern void cpu_init(void); extern void cpu_init(void);