grub-devel
[Top][All Lists]
Advanced

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

[MULTIBOOT2 SPEC PATCH v4 27/27] multiboot2: Add labels around the termi


From: Hans Ulrich Niedermann
Subject: [MULTIBOOT2 SPEC PATCH v4 27/27] multiboot2: Add labels around the termination tag
Date: Fri, 15 May 2020 05:43:50 +0200

For code consistency and more clarity as to what these .short
and .long values actually are, use the same system for labeling
the terminator header tag as for labeling all other header tags.

This improves the readability of the code, without changing
the actual output.

Signed-off-by: Hans Ulrich Niedermann <address@hidden>

diff --git a/doc/boot_i386.S b/doc/boot_i386.S
index 2aa2a92b6..67411b968 100644
--- a/doc/boot_i386.S
+++ b/doc/boot_i386.S
@@ -81,9 +81,11 @@ framebuffer_tag_start:
        .long 32
 framebuffer_tag_end:
        .balign 8
+terminator_tag_start:
        .short MULTIBOOT_HEADER_TAG_END
        .short 0
-       .long 8
+       .long  terminator_tag_end - terminator_tag_start
+terminator_tag_end:
 multiboot_header_end:
 multiboot_entry:
        /* Initialize the stack pointer.  */
diff --git a/doc/boot_mips.S b/doc/boot_mips.S
index a6881528f..4d6ac1f67 100644
--- a/doc/boot_mips.S
+++ b/doc/boot_mips.S
@@ -85,9 +85,11 @@ framebuffer_tag_start:
        .long 32
 framebuffer_tag_end:
        .balign 8
+terminator_tag_start:
        .short MULTIBOOT_HEADER_TAG_END
        .short 0
-       .long 8
+       .long  terminator_tag_end - terminator_tag_start
+terminator_tag_end:
 multiboot_header_end:
 multiboot_entry:
        /* Initialize the stack pointer.  */
-- 
2.26.2




reply via email to

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