mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
To help with backtraces if we ever fix them due to the lkmc_asm_main_after_prologue debacle.
19 lines
296 B
ArmAsm
19 lines
296 B
ArmAsm
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-cbz-instruction */
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
|
|
/* Branch. */
|
|
mov x0, 0x0
|
|
cbz x0, .Lok
|
|
LKMC_ASSERT_FAIL
|
|
.Lok:
|
|
|
|
/* Don't branch. */
|
|
mov x0, 0x1
|
|
cbz x0, .Lko
|
|
LKMC_EPILOGUE
|
|
.Lko:
|
|
LKMC_ASSERT_FAIL
|