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:
Ciro Santilli 六四事件 法轮功
2019-06-16 00:00:01 +00:00
parent 4d4b82f248
commit b3874cc72b
14 changed files with 43 additions and 46 deletions

View File

@@ -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,

View File

@@ -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