projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RISC-V: Fix a race condition during kernel stack overflow
[linux-block.git]
/
arch
/
riscv
/
include
/
asm
/
asm.h
diff --git
a/arch/riscv/include/asm/asm.h
b/arch/riscv/include/asm/asm.h
index e15a1c9f1cf886726ccdf9d0be5cad1484fc766f..816e753de636d48f8bb6f08c8d321824b144ecaa 100644
(file)
--- a/
arch/riscv/include/asm/asm.h
+++ b/
arch/riscv/include/asm/asm.h
@@
-68,4
+68,19
@@
#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 */