grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] relocator: Use .quad instead of .long


From: Frediano Ziglio
Subject: [PATCH] relocator: Use .quad instead of .long
Date: Tue, 3 Sep 2024 09:00:30 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]