mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
m5ops magic addresses
This commit is contained in:
12
baremetal/arch/aarch64/no_bootloader/m5_exit_addr.S
Normal file
12
baremetal/arch/aarch64/no_bootloader/m5_exit_addr.S
Normal 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]
|
||||
Reference in New Issue
Block a user