x86 asm: move jmp from x86-assembly-cheat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-12 00:00:03 +00:00
parent 5f50217fdd
commit 9dd63f6f54
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-jmp-instruction
*
* Unconditional branch, address relative to the current address.
*/
#include <lkmc.h>
LKMC_PROLOGUE
jmp after_fail
LKMC_ASSERT_FAIL
after_fail:
LKMC_EPILOGUE