Thread (4 messages) flat view 4 messages, 3 authors, 2021-07-15
STALE1848d

[PATCH] arm64: Remove AArch64 X30 redundant register alias

From: Naohiro Tamura <hidden>
Date: 2021-07-13 13:33:45
Subsystem: arm64 port (aarch64 architecture), the rest · Maintainers: Catalin Marinas, Will Deacon, Linus Torvalds

This trivial patch is my first one to the kernel community.
Please advice me if something is not right.

-- >8 --
Subject: arm64: Remove AArch64 X30 redundant register alias

This patch removes a redundant AArch64 register alias of X30.
According to the GNU as manual [1], "ip0, ip1, lr and fp are
automatically defined to alias to X16, X17, X30 and X29
respectively".

[1] https://sourceware.org/binutils/docs/as/AArch64-Directives.html

Signed-off-by: Naohiro Tamura <redacted>
---
 arch/arm64/include/asm/assembler.h | 5 -----
 1 file changed, 5 deletions(-)
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h
index 89faca0e740d..c66efc1b5406 100644
--- a/arch/arm64/include/asm/assembler.h
+++ b/arch/arm64/include/asm/assembler.h
@@ -155,11 +155,6 @@ alternative_endif
 9999:	x;					\
 	_asm_extable	9999b, l
 
-/*
- * Register aliases.
- */
-lr	.req	x30		// link register
-
 /*
  * Vector entry
  */
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help