mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
13 lines
297 B
ArmAsm
13 lines
297 B
ArmAsm
/* 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]
|