lkml.org 
[lkml]   [2015]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 10/34] x86, pkeys: arch-specific protection bitsy
    On Tue, 8 Dec 2015, Dave Hansen wrote:

    > Here's how it looks with the suggested modifications.
    >
    > Whatever compiler wonkiness I was seeing is gone now, so I've used the
    > most straightforward version of the shifts.

    > + * gcc generates better code if we do this rather than:
    > + * pkey = (flags & mask) >> shift
    > + */
    > + pkey = (vma->vm_flags & vma_pkey_mask) >> VM_PKEY_SHIFT;

    ROTFL!



    \
     
     \ /
      Last update: 2015-12-08 20:21    [W:3.089 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site