[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 1/7] arch/arm64: Implement a nop macro for timer API
We will use this macro in timer_cpu_block_until function. So we implement it in this patch. Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- arch/arm/arm64/include/uk/asm/lcpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/arm64/include/uk/asm/lcpu.h b/arch/arm/arm64/include/uk/asm/lcpu.h index 9eea746..6138d3b 100644 --- a/arch/arm/arm64/include/uk/asm/lcpu.h +++ b/arch/arm/arm64/include/uk/asm/lcpu.h @@ -110,6 +110,10 @@ struct __regs { #define wmb() dsb(st) /* Full system memory barrier store */ #endif +#ifndef nop +#define nop() __asm__ __volatile__ ("nop" : : : "memory") +#endif + static inline unsigned long ukarch_read_sp(void) { unsigned long sp; -- 2.17.1 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |