Skip to content

Commit

Permalink
x86: relocate_kernel_32.S - clear register in more elegant way
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
gorcunov@gmail.com authored and Ingo Molnar committed Apr 17, 2008
1 parent 15a601e commit 4039ae5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kernel/relocate_kernel_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ identity_mapped:
/* Set cr4 to a known state:
* Setting everything to zero seems safe.
*/
movl %cr4, %eax
andl $0, %eax
xorl %eax, %eax
movl %eax, %cr4

jmp 1f
Expand Down

0 comments on commit 4039ae5

Please sign in to comment.