[PATCH] tools/nolibc/parisc: consistently use %dp to refer to register %r27

From: Thomas Weißschuh

Date: Sun Sep 13 2026 - 18:26:53 EST


The parisc initialization code inconsistently uses both %dp and %r27 to
refer to the data pointer register.

Consistently use the %dp memnonic.

Suggested-by: Helge Deller <deller@xxxxxx>
Link: https://lore.kernel.org/lkml/495ef25e-0bac-4f98-b0da-ae0d96dcea59@xxxxxx/
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
tools/include/nolibc/arch-parisc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/include/nolibc/arch-parisc.h b/tools/include/nolibc/arch-parisc.h
index 417043ecbc53..ca219cbbabb0 100644
--- a/tools/include/nolibc/arch-parisc.h
+++ b/tools/include/nolibc/arch-parisc.h
@@ -169,7 +169,7 @@ void __attribute__((weak, noreturn)) __nolibc_entrypoint __nolibc_no_stack_prote
__asm__ volatile (
".import $global$\n" /* Set up the dp register */
"ldil L%$global$, %dp\n"
- "ldo R%$global$(%r27), %dp\n"
+ "ldo R%$global$(%dp), %dp\n"

"b _start_c\n" /* Call _start_c, the load below is executed first */


---
base-commit: b8d9d2966cde80ec3de37d830ea855c1a58d23dc
change-id: 20260914-nolibc-parisc-dp-register-35e2729bc939

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>