Skip to content
Snippets Groups Projects
Commit 2ff467c0 authored by Rob Herring's avatar Rob Herring Committed by Albert ARIBAUD
Browse files

ARM: add wfi assembly macro


Since wfi instruction is only available on ARMv7, add a conditional
macro for it.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent b0404ea1
No related merge requests found
......@@ -61,6 +61,12 @@
#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)
{
unsigned int val;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment