mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +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,7 +1,7 @@
|
||||
#include <lkmc.h>
|
||||
|
||||
.global lkmc_start
|
||||
lkmc_start:
|
||||
.global _start
|
||||
_start:
|
||||
/* Make all CPUs except CPU0 sleep by default. */
|
||||
mrs x0, mpidr_el1
|
||||
ands x0, x0, 3
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <lkmc.h>
|
||||
|
||||
.global lkmc_start
|
||||
lkmc_start:
|
||||
.global _start
|
||||
_start:
|
||||
/* Make all CPUs except CPU0 sleep by default. */
|
||||
mrc p15, 0, r0, c0, c0, 5
|
||||
ands r0, r0, 3
|
||||
|
||||
Reference in New Issue
Block a user