diff options
| author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:43 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:43 -0500 |
| commit | 0aa97fb22624f18e5925d702ab0364d3838cfd91 (patch) | |
| tree | 176cd49b9a41b6b2832e142ad48410a69d6ae651 | |
| parent | f288f32dc51042fd3a493b85b226e63f1ad3edcc (diff) | |
x86 vDSO: ia32_sysenter_target
This harmonizes the name for the entry point from the 32-bit sysenter
instruction across 32-bit and 64-bit kernels.
Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
| -rw-r--r-- | arch/x86/kernel/entry_32.S | 10 | ||||
| -rw-r--r-- | arch/x86/vdso/vdso32-setup.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S index d63609dd64b9..153bb87a4eea 100644 --- a/arch/x86/kernel/entry_32.S +++ b/arch/x86/kernel/entry_32.S | |||
| @@ -283,7 +283,7 @@ END(resume_kernel) | |||
| 283 | the vsyscall page. See vsyscall-sysentry.S, which defines the symbol. */ | 283 | the vsyscall page. See vsyscall-sysentry.S, which defines the symbol. */ |
| 284 | 284 | ||
| 285 | # sysenter call handler stub | 285 | # sysenter call handler stub |
| 286 | ENTRY(sysenter_entry) | 286 | ENTRY(ia32_sysenter_target) |
| 287 | CFI_STARTPROC simple | 287 | CFI_STARTPROC simple |
| 288 | CFI_SIGNAL_FRAME | 288 | CFI_SIGNAL_FRAME |
| 289 | CFI_DEF_CFA esp, 0 | 289 | CFI_DEF_CFA esp, 0 |
| @@ -360,7 +360,7 @@ sysenter_past_esp: | |||
| 360 | .align 4 | 360 | .align 4 |
| 361 | .long 1b,2b | 361 | .long 1b,2b |
| 362 | .popsection | 362 | .popsection |
| 363 | ENDPROC(sysenter_entry) | 363 | ENDPROC(ia32_sysenter_target) |
| 364 | 364 | ||
| 365 | # system call handler stub | 365 | # system call handler stub |
| 366 | ENTRY(system_call) | 366 | ENTRY(system_call) |
| @@ -768,7 +768,7 @@ label: \ | |||
| 768 | 768 | ||
| 769 | KPROBE_ENTRY(debug) | 769 | KPROBE_ENTRY(debug) |
| 770 | RING0_INT_FRAME | 770 | RING0_INT_FRAME |
| 771 | cmpl $sysenter_entry,(%esp) | 771 | cmpl $ia32_sysenter_target,(%esp) |
| 772 | jne debug_stack_correct | 772 | jne debug_stack_correct |
| 773 | FIX_STACK(12, debug_stack_correct, debug_esp_fix_insn) | 773 | FIX_STACK(12, debug_stack_correct, debug_esp_fix_insn) |
| 774 | debug_stack_correct: | 774 | debug_stack_correct: |
| @@ -799,7 +799,7 @@ KPROBE_ENTRY(nmi) | |||
| 799 | popl %eax | 799 | popl %eax |
| 800 | CFI_ADJUST_CFA_OFFSET -4 | 800 | CFI_ADJUST_CFA_OFFSET -4 |
| 801 | je nmi_espfix_stack | 801 | je nmi_espfix_stack |
| 802 | cmpl $sysenter_entry,(%esp) | 802 | cmpl $ia32_sysenter_target,(%esp) |
| 803 | je nmi_stack_fixup | 803 | je nmi_stack_fixup |
| 804 | pushl %eax | 804 | pushl %eax |
| 805 | CFI_ADJUST_CFA_OFFSET 4 | 805 | CFI_ADJUST_CFA_OFFSET 4 |
| @@ -812,7 +812,7 @@ KPROBE_ENTRY(nmi) | |||
| 812 | popl %eax | 812 | popl %eax |
| 813 | CFI_ADJUST_CFA_OFFSET -4 | 813 | CFI_ADJUST_CFA_OFFSET -4 |
| 814 | jae nmi_stack_correct | 814 | jae nmi_stack_correct |
| 815 | cmpl $sysenter_entry,12(%esp) | 815 | cmpl $ia32_sysenter_target,12(%esp) |
| 816 | je nmi_debug_stack_check | 816 | je nmi_debug_stack_check |
| 817 | nmi_stack_correct: | 817 | nmi_stack_correct: |
| 818 | /* We have a RING0_INT_FRAME here */ | 818 | /* We have a RING0_INT_FRAME here */ |
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c index 85c52d23ee40..fb71a93c5dce 100644 --- a/arch/x86/vdso/vdso32-setup.c +++ b/arch/x86/vdso/vdso32-setup.c | |||
| @@ -54,7 +54,7 @@ static int __init vdso_setup(char *s) | |||
| 54 | 54 | ||
| 55 | __setup("vdso=", vdso_setup); | 55 | __setup("vdso=", vdso_setup); |
| 56 | 56 | ||
| 57 | extern asmlinkage void sysenter_entry(void); | 57 | extern asmlinkage void ia32_sysenter_target(void); |
| 58 | 58 | ||
| 59 | static __init void reloc_symtab(Elf32_Ehdr *ehdr, | 59 | static __init void reloc_symtab(Elf32_Ehdr *ehdr, |
| 60 | unsigned offset, unsigned size) | 60 | unsigned offset, unsigned size) |
| @@ -187,7 +187,7 @@ void enable_sep_cpu(void) | |||
| 187 | tss->x86_tss.esp1 = sizeof(struct tss_struct) + (unsigned long) tss; | 187 | tss->x86_tss.esp1 = sizeof(struct tss_struct) + (unsigned long) tss; |
| 188 | wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0); | 188 | wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0); |
| 189 | wrmsr(MSR_IA32_SYSENTER_ESP, tss->x86_tss.esp1, 0); | 189 | wrmsr(MSR_IA32_SYSENTER_ESP, tss->x86_tss.esp1, 0); |
| 190 | wrmsr(MSR_IA32_SYSENTER_EIP, (unsigned long) sysenter_entry, 0); | 190 | wrmsr(MSR_IA32_SYSENTER_EIP, (unsigned long) ia32_sysenter_target, 0); |
| 191 | put_cpu(); | 191 | put_cpu(); |
| 192 | } | 192 | } |
| 193 | 193 | ||
