[lkml]   [2011]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/3] x86: drop unnecessary kernel_eflags variable from 64 bit.
    On Tue, Jul 05, 2011 at 02:00:12PM +0100, Ian Campbell wrote:
    > For no reason that I can determine 64 bit x86 saves the current eflags
    > in cpu_init purely for use in ret_from_fork. The equivalent 32 bit
    > code simply hard codes 0x0202 as the new EFLAGS which seems safer than
    > relying on a potentially arbitrary EFLAGS saved during cpu_init.
    > Original i386 changeset
    > Original x86_64 changset
    > The only comment in the later indicates that it is following the
    > former, but not why it differs in this way.
    > This change makes 64 bit use the same mechanism to setup the initial
    > EFLAGS on fork. Note that 64 bit resets EFLAGS before calling
    > schedule_tail() as opposed to 32 bit which calls schedule_tail()
    > first. Therefore the correct value for EFLAGS has opposite IF
    > bit. This will be fixed in a subsequent patch.
    > Signed-off-by: Ian Campbell <>
    > Cc:

    The whole series looks good to me, thanks Ian! I hope I don't
    miss anything, so lets wait for more feedback ;)


     \ /
      Last update: 2011-07-05 15:31    [W:0.020 / U:96.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site