[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260120195407.1163051-7-hpa@zytor.com>
Date: Tue, 20 Jan 2026 11:53:58 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Thomas Gleixner <tglx@...nel.org>, Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Uros Bizjak <ubizjak@...il.com>, Petr Mladek <pmladek@...e.com>,
Andrew Morton <akpm@...ux-foundation.org>, Kees Cook <kees@...nel.org>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Nathan Chancellor <nathan@...nel.org>,
Kiryl Shutsemau <kas@...nel.org>,
Rick Edgecombe <rick.p.edgecombe@...el.com>
Cc: "H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org,
linux-coco@...ts.linux.dev, x86@...nel.org
Subject: [PATCH v1 06/14] x86/boot: add comment barriers for the different headers
Add better comment barriers at the top of the PECOFF header and the
bzImage header to make it easier to find the source for the respective
chunks of data.
Signed-off-by: H. Peter Anvin (Intel) <hpa@...or.com>
---
arch/x86/boot/header.S | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
index 5a54d33e51c2..d74db02928e6 100644
--- a/arch/x86/boot/header.S
+++ b/arch/x86/boot/header.S
@@ -40,6 +40,9 @@ SYSSEG = 0x1000 /* historical load address >> 4 */
.set falign, 0x200
.code16
+
+# EFI PECOFF header ##########################################################
+
.section ".header", "a"
#ifdef CONFIG_EFI_STUB
# "MZ", MS-DOS header
@@ -224,6 +227,8 @@ pecompat_fstart:
#endif /* CONFIG_EFI_STUB */
+# bzImage header #############################################################
+
# hdr should be at address 0x1f1; -2 for the sentinel
.org 0x1f1-2, 0xff # Fill with 0xff
@@ -545,7 +550,7 @@ kernel_info_offset: .long ZO_kernel_info
.globl end_of_bzheader
end_of_bzheader:
-# End of setup header #####################################################
+# End of bzImage header ######################################################
.section ".entrytext", "ax"
.globl start_of_setup
--
2.52.0
Powered by blists - more mailing lists