m5ops magic addresses

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-10-27 00:00:02 +00:00
parent 196d5be280
commit 21d365a0fc
2 changed files with 55 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
/* https://cirosantilli.com/linux-kernel-module-cheat#m5ops-magic-addresses */
.global _start
_start:
# First parameter.
mov x0, 0
# 0x21 is exit.
# 0x10010000 is system.m5ops_base
ldr x10, =(0x21 << 8)
ldr x9, =0x10010000
# Do the magic access.
ldr x0, [x9, x10]