aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-05-16 17:02:05 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-16 17:02:05 -0400
commit638d957b51c88852de72f15f7cd588d125e97dab (patch)
tree84e9d6c7bb5416659e9015b60da3909751266c80 /arch/x86/include
parent137127018812ec7fcccb9843156cfc0b5cfa31d5 (diff)
x86, realmode: Change EFER to a single u64 field
Change EFER to be a single u64 field instead of two u32 fields; change the order to maintain alignment. Note that on x86-64 cr4 is really also a 64-bit quantity, although we can only set the low 32 bits from the trampoline code since it is still executing in 32-bit mode at that point. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/realmode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/realmode.h b/arch/x86/include/asm/realmode.h
index 937dc6071d76..fce3f4ae5bd6 100644
--- a/arch/x86/include/asm/realmode.h
+++ b/arch/x86/include/asm/realmode.h
@@ -35,9 +35,8 @@ struct trampoline_header {
35 u32 gdt_base; 35 u32 gdt_base;
36#else 36#else
37 u64 start; 37 u64 start;
38 u64 efer;
38 u32 cr4; 39 u32 cr4;
39 u32 efer_low;
40 u32 efer_high;
41#endif 40#endif
42}; 41};
43 42