|
From: | Vladimir 'phcoder' Serbinenko |
Subject: | Re: [PATCH] relocator: Use .quad instead of .long |
Date: | Tue, 3 Sep 2024 16:44:26 +0300 |
Used also in other assembly files.
They are single 64-bit values.
Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com>
---
grub-core/lib/x86_64/relocator_asm.S | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/grub-core/lib/x86_64/relocator_asm.S b/grub-core/lib/x86_64/relocator_asm.S
index fd9b2b44e..12728d8e1 100644
--- a/grub-core/lib/x86_64/relocator_asm.S
+++ b/grub-core/lib/x86_64/relocator_asm.S
@@ -26,21 +26,21 @@ VARIABLE(grub_relocator_backward_start)
.byte 0x48
.byte 0xb8
VARIABLE(grub_relocator_backward_dest)
- .long 0, 0
+ .quad 0
movq %rax, %rdi
/* mov imm64, %rax */
.byte 0x48
.byte 0xb8
VARIABLE(grub_relocator_backward_src)
- .long 0, 0
+ .quad 0
movq %rax, %rsi
/* mov imm64, %rcx */
.byte 0x48
.byte 0xb9
VARIABLE(grub_relocator_backward_chunk_size)
- .long 0, 0
+ .quad 0
add %rcx, %rsi
add %rcx, %rdi
@@ -62,21 +62,21 @@ VARIABLE(grub_relocator_forward_start)
.byte 0x48
.byte 0xb8
VARIABLE(grub_relocator_forward_dest)
- .long 0, 0
+ .quad 0
movq %rax, %rdi
/* mov imm64, %rax */
.byte 0x48
.byte 0xb8
VARIABLE(grub_relocator_forward_src)
- .long 0, 0
+ .quad 0
movq %rax, %rsi
/* mov imm64, %rcx */
.byte 0x48
.byte 0xb9
VARIABLE(grub_relocator_forward_chunk_size)
- .long 0, 0
+ .quad 0
/* Forward copy. */
cld
--
2.46.0
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
[Prev in Thread] | Current Thread | [Next in Thread] |