Skip to contentSkip to conversation

xen/arm: mpu: Use new-style annotations

PATCH In review Michal Orzel 3 participants 3 messages Apr 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: mpu: Use new-style annotations

When purging old-style annotations, MPU code was left unmodified. Fix it.

Fixes 221c66f4f2a4 ("Arm: purge ENTRY(), ENDPROC(), and ALIGN")

---
I found the issue when applying Luca series to be commited enabling MPU on Arm64 build. This patch is a prerequisite for it.

---
 xen/arch/arm/arm64/mpu/head.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/arm64/mpu/head.S +2 -2
index 4d00de4869af..ed01993d8556 100644
@@ -158,11 +158,11 @@ END(enable_boot_cpu_mm)
  * We don't yet support secondary CPUs bring-up. Implement a dummy helper to
  * please the common code.
  */
-ENTRY(enable_secondary_cpu_mm)
+FUNC(enable_secondary_cpu_mm)
     PRINT("- SMP not enabled yet -\r\n")
 1:  wfe
     b 1b
-ENDPROC(enable_secondary_cpu_mm)
+END(enable_secondary_cpu_mm)
 
 /*
  * Local variables:
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Michal Orzel
Quoted 5 lines · Michal Orzel

When purging old-style annotations, MPU code was left unmodified. Fix it.

Fixes 221c66f4f2a4 ("Arm: purge ENTRY(), ENDPROC(), and ALIGN")

I'm sorry for the oversight. I had meant to do a last-minute grep before committing that patch, but then forgot. A tiny bit to my excuse: The introduction of MPU post-dates the common-ized assembly annotations by quite a bit. It should have used new-style annotations from the very beginning imo.

Jan