x86 asm: move NOP in from x86-assembly-cheat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-16 00:00:05 +00:00
parent ef4fa33ef7
commit 76c7cfe5aa
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-nop-instruction */
#include <lkmc.h>
LKMC_PROLOGUE
nop
nop
/* Other nops
* http://stackoverflow.com/questions/11910501/why-did-gcc-generate-mov-eax-eax-and-what-does-it-mean
*/
mov %rax, %rax
LKMC_EPILOGUE