lkml.org 
[lkml]   [2019]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch V2 07/29] x86/exceptions: Make IST index zero based
    On Fri, Apr 05, 2019 at 05:07:05PM +0200, Thomas Gleixner wrote:
    > The defines for the exception stack (IST) array in the TSS are using the
    > SDM convention IST1 - IST7. That causes all sorts of code to subtract 1 for
    > array indices related to IST. That's confusing at best and does not provide
    > any value.
    >
    > Make the indices zero based and fixup the usage sites. The only code which
    > needs to adjust the 0 based index is the interrupt descriptor setup which
    > needs to add 1 now.
    >
    > Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    > ---

    Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>

    \
     
     \ /
      Last update: 2019-04-05 21:00    [W:4.894 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site