summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/security/intel/txt/getsec_enteraccs.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/security/intel/txt/getsec_enteraccs.S b/src/security/intel/txt/getsec_enteraccs.S
index be3a1b4f0b..09f9f389e6 100644
--- a/src/security/intel/txt/getsec_enteraccs.S
+++ b/src/security/intel/txt/getsec_enteraccs.S
@@ -3,6 +3,7 @@
#include <cpu/x86/mtrr.h>
#include <cpu/x86/cr.h>
#include <cpu/x86/msr.h>
+#include <arch/ram_segs.h>
#include "getsec_mtrr_setup.inc"
@@ -252,10 +253,10 @@ cond_clear_var_mtrrs:
lgdt -48(%ebp)
/* Set cs */
- ljmp $0x10, $1f
+ ljmp $RAM_CODE_SEG, $1f
1:
/* Fix segment registers */
- movl $0x18, %eax
+ movl $RAM_DATA_SEG, %eax
movl %eax, %ds
movl %eax, %es
movl %eax, %ss