lkml.org 
[lkml]   [2013]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 0/5] preempt_count rework
    On 08/14/2013 09:52 AM, Peter Zijlstra wrote:
    >
    > Oh curses, this is because lea can't do segment offsets? So there's no
    > sane way to get addresses of per-cpu variables.
    >
    > Because ideally we'd have something like:
    >
    > lea %gs:__percpu_runqueues,%rax
    >
    > So in this case it makes sense to also store the actual pointer; how
    > unfortunate.
    >

    Correct; the segment offset is not part of the effective address, even
    in 64-bit mode.

    -hpa



    \
     
     \ /
      Last update: 2013-08-14 19:21    [W:3.784 / U:0.332 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site