mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +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:
@@ -15,7 +15,7 @@ LKMC_PROLOGUE
|
||||
mrs x1, mpidr_el1
|
||||
ands x1, x1, 3
|
||||
beq cpu0_only
|
||||
cpu1_only:
|
||||
.Lcpu1_only:
|
||||
/* Only CPU 1 reaches this point and sets the spinlock. */
|
||||
mov x0, 1
|
||||
ldr x1, =spinlock
|
||||
@@ -28,12 +28,12 @@ cpu1_only:
|
||||
* Optional, but could save power on a real system.
|
||||
*/
|
||||
sev
|
||||
cpu1_sleep_forever:
|
||||
.Lcpu1_sleep_forever:
|
||||
/* Hint CPU 1 to enter low power mode.
|
||||
* Optional, but could save power on a real system.
|
||||
*/
|
||||
wfe
|
||||
b cpu1_sleep_forever
|
||||
b .Lcpu1_sleep_forever
|
||||
cpu0_only:
|
||||
/* Only CPU 0 reaches this point. */
|
||||
|
||||
@@ -46,7 +46,7 @@ cpu0_only:
|
||||
/* Argument 1: target_cpu */
|
||||
mov x1, 1
|
||||
/* Argument 2: entry_point_address */
|
||||
ldr x2, =cpu1_only
|
||||
ldr x2, =.Lcpu1_only
|
||||
/* Argument 3: context_id */
|
||||
mov x3, 0
|
||||
/* Unused hvc args: the Linux kernel zeroes them,
|
||||
|
||||
Reference in New Issue
Block a user