From fddeb0fd64dee822d91f94d0f6e43920541e1947 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Fri, 14 Aug 2026 16:56:57 +0100 Subject: [PATCH] x86/emul: Adjust comments in x86-types.h x86_segment enumerates segments, not segment registers. Adjust the comment to make this clearer. Fix a stray tab with the closing #endif. No functional change. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- xen/arch/x86/include/asm/x86-types.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/include/asm/x86-types.h b/xen/arch/x86/include/asm/x86-types.h index 1c43421885..69a9732713 100644 --- a/xen/arch/x86/include/asm/x86-types.h +++ b/xen/arch/x86/include/asm/x86-types.h @@ -16,9 +16,10 @@ #endif /* - * Comprehensive enumeration of x86 segment registers. Various bits of code - * rely on this order (general purpose before system, tr at the beginning of - * system). + * x86 Segments. + * + * Various areas of code rely on this order (general purpose before system, + * tr at the beginning of system). */ enum x86_segment { /* General purpose. Matches the SReg3 encoding in opcode/ModRM bytes. */ @@ -73,4 +74,4 @@ struct segment_register { uint64_t base; }; -#endif /* X86_X86_TYPES_H */ +#endif /* X86_X86_TYPES_H */