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 | |
---|---|
|
|
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) 269 269 CFI_STARTPROC simple 270 270 CFI_DEF_CFA esp, 0 271 271 CFI_REGISTER esp, ebp 272 movl TSS_sysenter_esp0(%esp),%esp272 movl SYSENTER_stack_esp0(%esp),%esp 273 273 sysenter_past_esp: 274 274 /* 275 275 * No need to follow this irqs on/off section: the syscall … … device_not_available_emulate: 689 689 * that sets up the real kernel stack. Check here, since we can't 690 690 * allow the wrong stack to be used. 691 691 * 692 * " TSS_sysenter_esp0+12" is because the NMI/debug handler will have692 * "SYSENTER_stack_esp0+12" is because the NMI/debug handler will have 693 693 * already pushed 3 words if it hits on the sysenter instruction: 694 694 * eflags, cs and eip. 695 695 * … … device_not_available_emulate: 701 701 cmpw $__KERNEL_CS,4(%esp); \ 702 702 jne ok; \ 703 703 label: \ 704 movl TSS_sysenter_esp0+offset(%esp),%esp; \704 movl SYSENTER_stack_esp0+offset(%esp),%esp; \ 705 705 pushfl; \ 706 706 pushl $__KERNEL_CS; \ 707 707 pushl $sysenter_past_esp
Note: See TracBrowser
for help on using the repository browser.