lkml.org 
[lkml]   [2008]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 1/4] x86: relocate_kernel_32.S - clear register in more elegant way
    Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
    ---

    Index: linux-2.6.git/arch/x86/kernel/relocate_kernel_32.S
    ===================================================================
    --- linux-2.6.git.orig/arch/x86/kernel/relocate_kernel_32.S 2008-03-22 20:58:02.000000000 +0300
    +++ linux-2.6.git/arch/x86/kernel/relocate_kernel_32.S 2008-03-22 21:15:37.000000000 +0300
    @@ -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
    --


    \
     
     \ /
      Last update: 2008-03-22 22:07    [W:0.046 / U:30.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site