RISC-V: Fix a race condition during kernel stack overflow
[linux-block.git] / arch / riscv / include / asm / asm.h
index e15a1c9f1cf886726ccdf9d0be5cad1484fc766f..816e753de636d48f8bb6f08c8d321824b144ecaa 100644 (file)
 #error "Unexpected __SIZEOF_SHORT__"
 #endif
 
+#ifdef __ASSEMBLY__
+
+/* Common assembly source macros */
+
+/*
+ * NOP sequence
+ */
+.macro nops, num
+       .rept   \num
+       nop
+       .endr
+.endm
+
+#endif /* __ASSEMBLY__ */
+
 #endif /* _ASM_RISCV_ASM_H */