Add memory barrier functions to the ARM bootloader.
This commit is contained in:
parent
0f434c4a95
commit
5db97b2668
@ -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
|
||||
arch_spin(bigtime_t microseconds)
|
||||
{
|
||||
|
@ -14,6 +14,8 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
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 void cpu_init(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user