• Linus Torvalds's avatar
    Use a fixed per-cpu SYSENTER_MSR_ESP value by having the sysenter · e3db4852
    Linus Torvalds authored
    entry routine load the real ESP0 off that per-cpu stack. Make this
    even faster by putting the sysenter stack in the per-CPU TSS, so
    that we can use the tss->esp0 value directly (which we have to
    update on task switches anyway).
    
    CAREFUL! This needs very subtle code for debug and NMI exceptions,
    to make sure we don't run with the sysenter stack in any real kernel
    code!
    e3db4852
entry.S 17.9 KB