x86: relocate_kernel_32.S - clear register in more elegant way
authorgorcunov@gmail.com <gorcunov@gmail.com>
Sat, 22 Mar 2008 21:00:06 +0000 (00:00 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:29 +0000 (17:41 +0200)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/relocate_kernel_32.S

index ec4e6a0e0c2e3c8016e6a4ad104dd1dd1dcd2bbf..fbc4fad231379bc7ec500514daf29cd743040253 100644 (file)
@@ -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