projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db34a09
)
x86/boot: use mnemonics rather than magic numbers
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Wed, 14 Oct 2015 10:48:00 +0000
(12:48 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Wed, 14 Oct 2015 10:48:00 +0000
(12:48 +0200)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/trampoline.S
patch
|
blob
|
history
diff --git
a/xen/arch/x86/boot/trampoline.S
b/xen/arch/x86/boot/trampoline.S
index ccb40fb4d8aabf7a9c6e66a0513675ea5802591c..3452979e0426d8fb6163d511bfd4e1aa3e3285b5 100644
(file)
--- 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: