Skip to content

Commit 4868402

Browse files
aspotashevIngo Molnar
authored andcommitted
x86, boot: Simplify setting of the PAE bit
A single 'movl' is shorter than the 'xorl'-'orl' pair. No change in behaviour. Signed-off-by: Alexander Potashev <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent b1258ac commit 4868402

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/boot/compressed/head_64.S

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ ENTRY(startup_32)
107107
lgdt gdt(%ebp)
108108

109109
/* Enable PAE mode */
110-
xorl %eax, %eax
111-
orl $(X86_CR4_PAE), %eax
110+
movl $(X86_CR4_PAE), %eax
112111
movl %eax, %cr4
113112

114113
/*

0 commit comments

Comments
 (0)