mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-07 17:57:38 +01:00
x86: Add initial memory barrier macros
These are available on other architectures, so add them on x86. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8abebe3ead
commit
8a487a4417
1 changed files with 8 additions and 0 deletions
|
|
@ -234,4 +234,12 @@ static inline phys_addr_t virt_to_phys(void * vaddr)
|
|||
return (phys_addr_t)(vaddr);
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: The kernel offers some more advanced versions of barriers, it might
|
||||
* have some advantages to use them instead of the simple one here.
|
||||
*/
|
||||
#define dmb() __asm__ __volatile__ ("" : : : "memory")
|
||||
#define __iormb() dmb()
|
||||
#define __iowmb() dmb()
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue