mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
x86 asm: move NOP in from x86-assembly-cheat
This commit is contained in:
13
userland/arch/x86_64/nop.S
Normal file
13
userland/arch/x86_64/nop.S
Normal 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
|
||||
Reference in New Issue
Block a user