From: Sergiu Moga Date: Wed, 1 Nov 2023 06:30:24 +0000 (+0200) Subject: plat/common/x86: Add macro-definition for `X86_MSR_GS_BASE` X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=73b4f07367052307ff343cdf174bb467109a94db;p=unikraft%2Funikraft.git plat/common/x86: Add macro-definition for `X86_MSR_GS_BASE` Add a macro-definition for the `MSR_GS_BASE` MSR to access the `gs_base` register in 64-bit mode. Co-authored-by: Marco Schlumpp Signed-off-by: Marco Schlumpp Signed-off-by: Sergiu Moga --- diff --git a/plat/common/include/x86/cpu_defs.h b/plat/common/include/x86/cpu_defs.h index a08e81fa9..487af7eff 100644 --- a/plat/common/include/x86/cpu_defs.h +++ b/plat/common/include/x86/cpu_defs.h @@ -88,7 +88,9 @@ /* * Model-specific register addresses */ +/* FS and GS Registers in 64-bit Mode */ #define X86_MSR_FS_BASE 0xc0000100 +#define X86_MSR_GS_BASE 0xc0000101 /* extended feature register */ #define X86_MSR_EFER 0xc0000080 /* legacy mode SYSCALL target */