]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
plat/common/x86: Add macro-definition for `X86_MSR_GS_BASE`
authorSergiu Moga <sergiu@unikraft.io>
Wed, 1 Nov 2023 06:30:24 +0000 (08:30 +0200)
committerSergiu Moga <sergiu@unikraft.io>
Fri, 24 Nov 2023 17:16:10 +0000 (19:16 +0200)
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 <marco@unikraft.io>
Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
plat/common/include/x86/cpu_defs.h

index a08e81fa9f01ed9c1ede56f0c9ffe3097efea14e..487af7effcbbe0ba144822be9ae9fcf329d572ad 100644 (file)
@@ -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 */