source: trunk/packages/xen-3.1/xen-3.1/patches/linux-2.6.18/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/x-patch
File size: 1.2 KB
  • arch/i386/kernel/entry.S

    diff -pruN ../orig-linux-2.6.18/arch/i386/kernel/entry.S ./arch/i386/kernel/entry.S
    old new ENTRY(sysenter_entry) 
    269269        CFI_STARTPROC simple
    270270        CFI_DEF_CFA esp, 0
    271271        CFI_REGISTER esp, ebp
    272         movl TSS_sysenter_esp0(%esp),%esp
     272        movl SYSENTER_stack_esp0(%esp),%esp
    273273sysenter_past_esp:
    274274        /*
    275275         * No need to follow this irqs on/off section: the syscall
    device_not_available_emulate: 
    689689 * that sets up the real kernel stack. Check here, since we can't
    690690 * allow the wrong stack to be used.
    691691 *
    692  * "TSS_sysenter_esp0+12" is because the NMI/debug handler will have
     692 * "SYSENTER_stack_esp0+12" is because the NMI/debug handler will have
    693693 * already pushed 3 words if it hits on the sysenter instruction:
    694694 * eflags, cs and eip.
    695695 *
    device_not_available_emulate: 
    701701        cmpw $__KERNEL_CS,4(%esp);              \
    702702        jne ok;                                 \
    703703label:                                          \
    704         movl TSS_sysenter_esp0+offset(%esp),%esp;       \
     704        movl SYSENTER_stack_esp0+offset(%esp),%esp;     \
    705705        pushfl;                                 \
    706706        pushl $__KERNEL_CS;                     \
    707707        pushl $sysenter_past_esp
Note: See TracBrowser for help on using the repository browser.