mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 14:06:07 -04:00
ARM: add wfi assembly macro
Since wfi instruction is only available on ARMv7, add a conditional macro for it. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
This commit is contained in:
parent
b0404ea126
commit
2ff467c051
@ -61,6 +61,12 @@
|
|||||||
|
|
||||||
#define nop() __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t");
|
#define nop() __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t");
|
||||||
|
|
||||||
|
#ifdef __ARM_ARCH_7A__
|
||||||
|
#define wfi() __asm__ __volatile__ ("wfi" : : : "memory")
|
||||||
|
#else
|
||||||
|
#define wfi()
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline unsigned int get_cr(void)
|
static inline unsigned int get_cr(void)
|
||||||
{
|
{
|
||||||
unsigned int val;
|
unsigned int val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user