mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +01:00
baremetal: make entry point _start instead of lkmc_start
I forgot why I did that. Let's try and see it blow up.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
.global lkmc_start
|
||||
lkmc_start:
|
||||
.global _start
|
||||
_start:
|
||||
mov r0, #0; mov r1, #0; .inst 0xEE000110 | (0x21 << 16);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include <lkmc.h>
|
||||
|
||||
.global lkmc_start
|
||||
lkmc_start:
|
||||
.global _start
|
||||
_start:
|
||||
mov r0, 0
|
||||
ldr r1, =.Lspinlock
|
||||
str r0, [r1]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.global lkmc_start
|
||||
lkmc_start:
|
||||
.global _start
|
||||
_start:
|
||||
mov r0, #0x18
|
||||
ldr r1, =#0x20026
|
||||
svc 0x00123456
|
||||
|
||||
Reference in New Issue
Block a user