Make the hardware memory and instruction barrier functions work on armv4
and armv5 as well.
This commit is contained in:
parent
76f66be6bf
commit
6af0d51bce
@ -58,9 +58,9 @@
|
||||
#define dsb() __asm __volatile("mcr p15, 0, %0, c7, c10, 4" : : "r" (0) : "memory")
|
||||
#define dmb() __asm __volatile("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory")
|
||||
#else
|
||||
#define isb()
|
||||
#define dsb()
|
||||
#define dmb()
|
||||
#define isb() __asm __volatile("mcr p15, 0, %0, c7, c5, 4" : : "r" (0) : "memory")
|
||||
#define dsb() __asm __volatile("mcr p15, 0, %0, c7, c10, 4" : : "r" (0) : "memory")
|
||||
#define dmb() dsb()
|
||||
#endif
|
||||
|
||||
#define mb() dmb()
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
.include <src.opts.mk>
|
||||
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
# Modules that include binary-only blobs of microcode should be selectable by
|
||||
# MK_SOURCELESS_UCODE option (see below).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user