mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
asm: make all text section labels .L local
To help with backtraces if we ever fix them due to the lkmc_asm_main_after_prologue debacle.
This commit is contained in:
@@ -10,21 +10,21 @@ LKMC_PROLOGUE
|
||||
mrc p15, 0, r1, c0, c0, 5
|
||||
ands r1, r1, 3
|
||||
beq cpu0_only
|
||||
cpu1_only:
|
||||
.Lcpu1_only:
|
||||
mov r0, 1
|
||||
ldr r1, =spinlock
|
||||
str r0, [r1]
|
||||
dmb sy
|
||||
sev
|
||||
cpu1_sleep_forever:
|
||||
.Lcpu1_sleep_forever:
|
||||
wfe
|
||||
b cpu1_sleep_forever
|
||||
b .Lcpu1_sleep_forever
|
||||
cpu0_only:
|
||||
#if !LKMC_GEM5
|
||||
/* PSCI CPU_ON. */
|
||||
ldr r0, =0x84000003
|
||||
mov r1, 1
|
||||
ldr r2, =cpu1_only
|
||||
ldr r2, =.Lcpu1_only
|
||||
mov r3, 0
|
||||
hvc 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user