From: Andrew Cooper Subject: [PATCH] x86/boot: Use mnemonics rather than magic numbers Date: Tue, 13 Oct 2015 17:39:51 +0100 Message-ID: <1444754391-19346-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Jan Beulich List-Id: xen-devel@lists.xenproject.org Signed-off-by: Andrew Cooper --- CC: Jan Beulich --- xen/arch/x86/boot/trampoline.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/boot/trampoline.S b/xen/arch/x86/boot/trampoline.S index ccb40fb..3452979 100644 --- a/xen/arch/x86/boot/trampoline.S +++ b/xen/arch/x86/boot/trampoline.S @@ -98,7 +98,8 @@ trampoline_protmode_entry: 1: wrmsr .Lskip_efer: - mov $0x80050033,%eax /* hi-to-lo: PG,AM,WP,NE,ET,MP,PE */ + mov $(X86_CR0_PG | X86_CR0_AM | X86_CR0_WP | X86_CR0_NE |\ + X86_CR0_ET | X86_CR0_MP | X86_CR0_PE), %eax mov %eax,%cr0 jmp 1f 1: -- 1.7.10.4