All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] loongarch64: Use la.pcrel instead of la.
@ 2025-04-05 18:01 Vladimir Serbinenko
  0 siblings, 0 replies; only message in thread
From: Vladimir Serbinenko @ 2025-04-05 18:01 UTC (permalink / raw)
  To: grub-devel; +Cc: Vladimir Serbinenko

la.pcrel unlike la should work even above 4GiB mark.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
 grub-core/kern/loongarch64/efi/startup.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/loongarch64/efi/startup.S
index 87cfb23ea..a6476b360 100644
--- a/grub-core/kern/loongarch64/efi/startup.S
+++ b/grub-core/kern/loongarch64/efi/startup.S
@@ -26,9 +26,9 @@ FUNCTION(_start)
 	 * EFI_SYSTEM_TABLE and EFI_HANDLE are passed in $a1/$a0.
 	 */
 
-	la 		$a2, EXT_C(grub_efi_image_handle)
+	la.pcrel	$a2, EXT_C(grub_efi_image_handle)
 	st.d		$a0, $a2, 0
-	la		$a2, EXT_C(grub_efi_system_table)
+	la.pcrel	$a2, EXT_C(grub_efi_system_table)
 	st.d		$a1, $a2, 0
 
 	b		EXT_C(grub_main)
-- 
2.49.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-04-05 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-05 18:01 [PATCH] loongarch64: Use la.pcrel instead of la Vladimir Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.