mbox series

[kvm-unit-tests,0/3] x86: Use macros for selectors in asm

Message ID 20250221225406.2228938-1-seanjc@google.com (mailing list archive)
Headers show
Series x86: Use macros for selectors in asm | expand

Message

Sean Christopherson Feb. 21, 2025, 10:54 p.m. UTC
Use macros for segment selectors in assembly instead of open coded literals.

v2:
 - Commit to using __ASSEMBLER__.

v1: https://lore.kernel.org/all/20240621122640.2347541-1-darcy.sh@antgroup.com


Hang SU (1):
  x86: replace segment selector magic number with macro definition

Sean Christopherson (2):
  x86: Move descriptor table selector #defines to the top of desc.h
  x86: Commit to using __ASSEMBLER__ instead of __ASSEMBLY__

 lib/x86/asm/page.h |   4 +-
 lib/x86/desc.h     | 123 +++++++++++++++++++++++----------------------
 x86/cstart64.S     |   8 +--
 x86/trampolines.S  |   8 +--
 4 files changed, 75 insertions(+), 68 deletions(-)


base-commit: f77fb696cfd0e4a5562cdca189be557946bf522f