Commit da849abe authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  x86, binutils, xen: Fix another wrong size directive
  x86: Remove dead config option X86_CPU
  x86: Really print supported CPUs if PROCESSOR_SELECT=y
  x86: Fix a bogus unwind annotation in lib/semaphore_32.S
  um, x86-64: Fix UML build after adding CFI annotations to lib/rwsem_64.S
  x86: Remove unused bits from lib/thunk_*.S
  x86: Use {push,pop}_cfi in more places
  x86-64: Add CFI annotations to lib/rwsem_64.S
  x86, asm: Cleanup unnecssary macros in asm-offsets.c
  x86, system.h: Drop unused __SAVE/__RESTORE macros
  x86: Use bitmap library functions
  x86: Partly unify asm-offsets_{32,64}.c
  x86: Reduce back the alignment of the per-CPU data section
parents 21a32816 371c394a
...@@ -10,6 +10,8 @@ endmenu ...@@ -10,6 +10,8 @@ endmenu
config UML_X86 config UML_X86
def_bool y def_bool y
select GENERIC_FIND_FIRST_BIT
select GENERIC_FIND_NEXT_BIT
config 64BIT config 64BIT
bool bool
...@@ -19,6 +21,9 @@ config X86_32 ...@@ -19,6 +21,9 @@ config X86_32
def_bool !64BIT def_bool !64BIT
select HAVE_AOUT select HAVE_AOUT
config X86_64
def_bool 64BIT
config RWSEM_XCHGADD_ALGORITHM config RWSEM_XCHGADD_ALGORITHM
def_bool X86_XADD def_bool X86_XADD
......
...@@ -64,6 +64,8 @@ config X86 ...@@ -64,6 +64,8 @@ config X86
select HAVE_TEXT_POKE_SMP select HAVE_TEXT_POKE_SMP
select HAVE_GENERIC_HARDIRQS select HAVE_GENERIC_HARDIRQS
select HAVE_SPARSE_IRQ select HAVE_SPARSE_IRQ
select GENERIC_FIND_FIRST_BIT
select GENERIC_FIND_NEXT_BIT
select GENERIC_IRQ_PROBE select GENERIC_IRQ_PROBE
select GENERIC_PENDING_IRQ if SMP select GENERIC_PENDING_IRQ if SMP
select USE_GENERIC_SMP_HELPERS if SMP select USE_GENERIC_SMP_HELPERS if SMP
......
...@@ -294,11 +294,6 @@ config X86_GENERIC ...@@ -294,11 +294,6 @@ config X86_GENERIC
endif endif
config X86_CPU
def_bool y
select GENERIC_FIND_FIRST_BIT
select GENERIC_FIND_NEXT_BIT
# #
# Define implied options from the CPU selection here # Define implied options from the CPU selection here
config X86_INTERNODE_CACHE_SHIFT config X86_INTERNODE_CACHE_SHIFT
......
...@@ -128,26 +128,20 @@ ENTRY(ia32_sysenter_target) ...@@ -128,26 +128,20 @@ ENTRY(ia32_sysenter_target)
*/ */
ENABLE_INTERRUPTS(CLBR_NONE) ENABLE_INTERRUPTS(CLBR_NONE)
movl %ebp,%ebp /* zero extension */ movl %ebp,%ebp /* zero extension */
pushq $__USER32_DS pushq_cfi $__USER32_DS
CFI_ADJUST_CFA_OFFSET 8
/*CFI_REL_OFFSET ss,0*/ /*CFI_REL_OFFSET ss,0*/
pushq %rbp pushq_cfi %rbp
CFI_ADJUST_CFA_OFFSET 8
CFI_REL_OFFSET rsp,0 CFI_REL_OFFSET rsp,0
pushfq pushfq_cfi
CFI_ADJUST_CFA_OFFSET 8
/*CFI_REL_OFFSET rflags,0*/ /*CFI_REL_OFFSET rflags,0*/
movl 8*3-THREAD_SIZE+TI_sysenter_return(%rsp), %r10d movl 8*3-THREAD_SIZE+TI_sysenter_return(%rsp), %r10d
CFI_REGISTER rip,r10 CFI_REGISTER rip,r10
pushq $__USER32_CS pushq_cfi $__USER32_CS
CFI_ADJUST_CFA_OFFSET 8
/*CFI_REL_OFFSET cs,0*/ /*CFI_REL_OFFSET cs,0*/
movl %eax, %eax movl %eax, %eax
pushq %r10 pushq_cfi %r10
CFI_ADJUST_CFA_OFFSET 8
CFI_REL_OFFSET rip,0 CFI_REL_OFFSET rip,0
pushq %rax pushq_cfi %rax
CFI_ADJUST_CFA_OFFSET 8
cld cld
SAVE_ARGS 0,0,1 SAVE_ARGS 0,0,1
/* no need to do an access_ok check here because rbp has been /* no need to do an access_ok check here because rbp has been
...@@ -184,11 +178,9 @@ sysexit_from_sys_call: ...@@ -184,11 +178,9 @@ sysexit_from_sys_call:
xorq %r9,%r9 xorq %r9,%r9
xorq %r10,%r10 xorq %r10,%r10
xorq %r11,%r11 xorq %r11,%r11
popfq popfq_cfi
CFI_ADJUST_CFA_OFFSET -8
/*CFI_RESTORE rflags*/ /*CFI_RESTORE rflags*/
popq %rcx /* User %esp */ popq_cfi %rcx /* User %esp */
CFI_ADJUST_CFA_OFFSET -8
CFI_REGISTER rsp,rcx CFI_REGISTER rsp,rcx
TRACE_IRQS_ON TRACE_IRQS_ON
ENABLE_INTERRUPTS_SYSEXIT32 ENABLE_INTERRUPTS_SYSEXIT32
...@@ -423,8 +415,7 @@ ENTRY(ia32_syscall) ...@@ -423,8 +415,7 @@ ENTRY(ia32_syscall)
*/ */
ENABLE_INTERRUPTS(CLBR_NONE) ENABLE_INTERRUPTS(CLBR_NONE)
movl %eax,%eax movl %eax,%eax
pushq %rax pushq_cfi %rax
CFI_ADJUST_CFA_OFFSET 8
cld cld
/* note the registers are not zero extended to the sf. /* note the registers are not zero extended to the sf.
this could be a problem. */ this could be a problem. */
......
...@@ -7,14 +7,12 @@ ...@@ -7,14 +7,12 @@
frame pointer later */ frame pointer later */
#ifdef CONFIG_FRAME_POINTER #ifdef CONFIG_FRAME_POINTER
.macro FRAME .macro FRAME
pushl %ebp pushl_cfi %ebp
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ebp,0 CFI_REL_OFFSET ebp,0
movl %esp,%ebp movl %esp,%ebp
.endm .endm
.macro ENDFRAME .macro ENDFRAME
popl %ebp popl_cfi %ebp
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE ebp CFI_RESTORE ebp
.endm .endm
#else #else
......
...@@ -98,8 +98,6 @@ do { \ ...@@ -98,8 +98,6 @@ do { \
*/ */
#define HAVE_DISABLE_HLT #define HAVE_DISABLE_HLT
#else #else
#define __SAVE(reg, offset) "movq %%" #reg ",(14-" #offset ")*8(%%rsp)\n\t"
#define __RESTORE(reg, offset) "movq (14-" #offset ")*8(%%rsp),%%" #reg "\n\t"
/* frame pointer must be last for get_wchan */ /* frame pointer must be last for get_wchan */
#define SAVE_CONTEXT "pushf ; pushq %%rbp ; movq %%rsi,%%rbp\n\t" #define SAVE_CONTEXT "pushf ; pushq %%rbp ; movq %%rsi,%%rbp\n\t"
......
/*
* Generate definitions needed by assembly language modules.
* This code generates raw asm output which is post-processed to extract
* and format the required data.
*/
#define COMPILE_OFFSETS
#include <linux/crypto.h>
#include <linux/sched.h>
#include <linux/stddef.h>
#include <linux/hardirq.h>
#include <linux/suspend.h>
#include <linux/kbuild.h>
#include <asm/processor.h>
#include <asm/thread_info.h>
#include <asm/sigframe.h>
#include <asm/bootparam.h>
#include <asm/suspend.h>
#ifdef CONFIG_XEN
#include <xen/interface/xen.h>
#endif
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
# include "asm-offsets_32.c" # include "asm-offsets_32.c"
#else #else
# include "asm-offsets_64.c" # include "asm-offsets_64.c"
#endif #endif
void common(void) {
BLANK();
OFFSET(TI_flags, thread_info, flags);
OFFSET(TI_status, thread_info, status);
OFFSET(TI_addr_limit, thread_info, addr_limit);
OFFSET(TI_preempt_count, thread_info, preempt_count);
BLANK();
OFFSET(crypto_tfm_ctx_offset, crypto_tfm, __crt_ctx);
BLANK();
OFFSET(pbe_address, pbe, address);
OFFSET(pbe_orig_address, pbe, orig_address);
OFFSET(pbe_next, pbe, next);
#ifdef CONFIG_PARAVIRT
BLANK();
OFFSET(PARAVIRT_enabled, pv_info, paravirt_enabled);
OFFSET(PARAVIRT_PATCH_pv_cpu_ops, paravirt_patch_template, pv_cpu_ops);
OFFSET(PARAVIRT_PATCH_pv_irq_ops, paravirt_patch_template, pv_irq_ops);
OFFSET(PV_IRQ_irq_disable, pv_irq_ops, irq_disable);
OFFSET(PV_IRQ_irq_enable, pv_irq_ops, irq_enable);
OFFSET(PV_CPU_iret, pv_cpu_ops, iret);
OFFSET(PV_CPU_irq_enable_sysexit, pv_cpu_ops, irq_enable_sysexit);
OFFSET(PV_CPU_read_cr0, pv_cpu_ops, read_cr0);
OFFSET(PV_MMU_read_cr2, pv_mmu_ops, read_cr2);
#endif
#ifdef CONFIG_XEN
BLANK();
OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask);
OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending);
#endif
BLANK();
OFFSET(BP_scratch, boot_params, scratch);
OFFSET(BP_loadflags, boot_params, hdr.loadflags);
OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch);
OFFSET(BP_version, boot_params, hdr.version);
OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment);
}
/*
* Generate definitions needed by assembly language modules.
* This code generates raw asm output which is post-processed
* to extract and format the required data.
*/
#include <linux/crypto.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/personality.h>
#include <linux/suspend.h>
#include <linux/kbuild.h>
#include <asm/ucontext.h> #include <asm/ucontext.h>
#include <asm/sigframe.h>
#include <asm/pgtable.h>
#include <asm/fixmap.h>
#include <asm/processor.h>
#include <asm/thread_info.h>
#include <asm/bootparam.h>
#include <asm/elf.h>
#include <asm/suspend.h>
#include <xen/interface/xen.h>
#include <linux/lguest.h> #include <linux/lguest.h>
#include "../../../drivers/lguest/lg.h" #include "../../../drivers/lguest/lg.h"
...@@ -51,21 +29,10 @@ void foo(void) ...@@ -51,21 +29,10 @@ void foo(void)
OFFSET(CPUINFO_x86_vendor_id, cpuinfo_x86, x86_vendor_id); OFFSET(CPUINFO_x86_vendor_id, cpuinfo_x86, x86_vendor_id);
BLANK(); BLANK();
OFFSET(TI_task, thread_info, task);
OFFSET(TI_exec_domain, thread_info, exec_domain);
OFFSET(TI_flags, thread_info, flags);
OFFSET(TI_status, thread_info, status);
OFFSET(TI_preempt_count, thread_info, preempt_count);
OFFSET(TI_addr_limit, thread_info, addr_limit);
OFFSET(TI_restart_block, thread_info, restart_block);
OFFSET(TI_sysenter_return, thread_info, sysenter_return); OFFSET(TI_sysenter_return, thread_info, sysenter_return);
OFFSET(TI_cpu, thread_info, cpu); OFFSET(TI_cpu, thread_info, cpu);
BLANK(); BLANK();
OFFSET(GDS_size, desc_ptr, size);
OFFSET(GDS_address, desc_ptr, address);
BLANK();
OFFSET(PT_EBX, pt_regs, bx); OFFSET(PT_EBX, pt_regs, bx);
OFFSET(PT_ECX, pt_regs, cx); OFFSET(PT_ECX, pt_regs, cx);
OFFSET(PT_EDX, pt_regs, dx); OFFSET(PT_EDX, pt_regs, dx);
...@@ -85,42 +52,13 @@ void foo(void) ...@@ -85,42 +52,13 @@ void foo(void)
OFFSET(PT_OLDSS, pt_regs, ss); OFFSET(PT_OLDSS, pt_regs, ss);
BLANK(); BLANK();
OFFSET(EXEC_DOMAIN_handler, exec_domain, handler);
OFFSET(IA32_RT_SIGFRAME_sigcontext, rt_sigframe, uc.uc_mcontext); OFFSET(IA32_RT_SIGFRAME_sigcontext, rt_sigframe, uc.uc_mcontext);
BLANK(); BLANK();
OFFSET(pbe_address, pbe, address);
OFFSET(pbe_orig_address, pbe, orig_address);
OFFSET(pbe_next, pbe, next);
/* Offset from the sysenter stack to tss.sp0 */ /* Offset from the sysenter stack to tss.sp0 */
DEFINE(TSS_sysenter_sp0, offsetof(struct tss_struct, x86_tss.sp0) - DEFINE(TSS_sysenter_sp0, offsetof(struct tss_struct, x86_tss.sp0) -
sizeof(struct tss_struct)); sizeof(struct tss_struct));
DEFINE(PAGE_SIZE_asm, PAGE_SIZE);
DEFINE(PAGE_SHIFT_asm, PAGE_SHIFT);
DEFINE(THREAD_SIZE_asm, THREAD_SIZE);
OFFSET(crypto_tfm_ctx_offset, crypto_tfm, __crt_ctx);
#ifdef CONFIG_PARAVIRT
BLANK();
OFFSET(PARAVIRT_enabled, pv_info, paravirt_enabled);
OFFSET(PARAVIRT_PATCH_pv_cpu_ops, paravirt_patch_template, pv_cpu_ops);
OFFSET(PARAVIRT_PATCH_pv_irq_ops, paravirt_patch_template, pv_irq_ops);
OFFSET(PV_IRQ_irq_disable, pv_irq_ops, irq_disable);
OFFSET(PV_IRQ_irq_enable, pv_irq_ops, irq_enable);
OFFSET(PV_CPU_iret, pv_cpu_ops, iret);
OFFSET(PV_CPU_irq_enable_sysexit, pv_cpu_ops, irq_enable_sysexit);
OFFSET(PV_CPU_read_cr0, pv_cpu_ops, read_cr0);
#endif
#ifdef CONFIG_XEN
BLANK();
OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask);
OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending);
#endif
#if defined(CONFIG_LGUEST) || defined(CONFIG_LGUEST_GUEST) || defined(CONFIG_LGUEST_MODULE) #if defined(CONFIG_LGUEST) || defined(CONFIG_LGUEST_GUEST) || defined(CONFIG_LGUEST_MODULE)
BLANK(); BLANK();
OFFSET(LGUEST_DATA_irq_enabled, lguest_data, irq_enabled); OFFSET(LGUEST_DATA_irq_enabled, lguest_data, irq_enabled);
...@@ -139,11 +77,4 @@ void foo(void) ...@@ -139,11 +77,4 @@ void foo(void)
OFFSET(LGUEST_PAGES_regs_errcode, lguest_pages, regs.errcode); OFFSET(LGUEST_PAGES_regs_errcode, lguest_pages, regs.errcode);
OFFSET(LGUEST_PAGES_regs, lguest_pages, regs); OFFSET(LGUEST_PAGES_regs, lguest_pages, regs);
#endif #endif
BLANK();
OFFSET(BP_scratch, boot_params, scratch);
OFFSET(BP_loadflags, boot_params, hdr.loadflags);
OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch);
OFFSET(BP_version, boot_params, hdr.version);
OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment);
} }
/*
* Generate definitions needed by assembly language modules.
* This code generates raw asm output which is post-processed to extract
* and format the required data.
*/
#define COMPILE_OFFSETS
#include <linux/crypto.h>
#include <linux/sched.h>
#include <linux/stddef.h>
#include <linux/errno.h>
#include <linux/hardirq.h>
#include <linux/suspend.h>
#include <linux/kbuild.h>
#include <asm/processor.h>
#include <asm/segment.h>
#include <asm/thread_info.h>
#include <asm/ia32.h> #include <asm/ia32.h>
#include <asm/bootparam.h>
#include <asm/suspend.h>
#include <xen/interface/xen.h>
#include <asm/sigframe.h>
#define __NO_STUBS 1 #define __NO_STUBS 1
#undef __SYSCALL #undef __SYSCALL
...@@ -33,41 +10,19 @@ static char syscalls[] = { ...@@ -33,41 +10,19 @@ static char syscalls[] = {
int main(void) int main(void)
{ {
#define ENTRY(entry) DEFINE(tsk_ ## entry, offsetof(struct task_struct, entry))
ENTRY(state);
ENTRY(flags);
ENTRY(pid);
BLANK();
#undef ENTRY
#define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
ENTRY(flags);
ENTRY(addr_limit);
ENTRY(preempt_count);
ENTRY(status);
#ifdef CONFIG_IA32_EMULATION
ENTRY(sysenter_return);
#endif
BLANK();
#undef ENTRY
#ifdef CONFIG_PARAVIRT #ifdef CONFIG_PARAVIRT
BLANK();
OFFSET(PARAVIRT_enabled, pv_info, paravirt_enabled);
OFFSET(PARAVIRT_PATCH_pv_cpu_ops, paravirt_patch_template, pv_cpu_ops);
OFFSET(PARAVIRT_PATCH_pv_irq_ops, paravirt_patch_template, pv_irq_ops);
OFFSET(PV_IRQ_irq_disable, pv_irq_ops, irq_disable);
OFFSET(PV_IRQ_irq_enable, pv_irq_ops, irq_enable);
OFFSET(PV_IRQ_adjust_exception_frame, pv_irq_ops, adjust_exception_frame); OFFSET(PV_IRQ_adjust_exception_frame, pv_irq_ops, adjust_exception_frame);
OFFSET(PV_CPU_iret, pv_cpu_ops, iret);
OFFSET(PV_CPU_usergs_sysret32, pv_cpu_ops, usergs_sysret32); OFFSET(PV_CPU_usergs_sysret32, pv_cpu_ops, usergs_sysret32);
OFFSET(PV_CPU_usergs_sysret64, pv_cpu_ops, usergs_sysret64); OFFSET(PV_CPU_usergs_sysret64, pv_cpu_ops, usergs_sysret64);
OFFSET(PV_CPU_irq_enable_sysexit, pv_cpu_ops, irq_enable_sysexit);
OFFSET(PV_CPU_swapgs, pv_cpu_ops, swapgs); OFFSET(PV_CPU_swapgs, pv_cpu_ops, swapgs);
OFFSET(PV_MMU_read_cr2, pv_mmu_ops, read_cr2); BLANK();
#endif #endif
#ifdef CONFIG_IA32_EMULATION #ifdef CONFIG_IA32_EMULATION
#define ENTRY(entry) DEFINE(IA32_SIGCONTEXT_ ## entry, offsetof(struct sigcontext_ia32, entry)) OFFSET(TI_sysenter_return, thread_info, sysenter_return);
BLANK();
#define ENTRY(entry) OFFSET(IA32_SIGCONTEXT_ ## entry, sigcontext_ia32, entry)
ENTRY(ax); ENTRY(ax);
ENTRY(bx); ENTRY(bx);
ENTRY(cx); ENTRY(cx);
...@@ -79,15 +34,12 @@ int main(void) ...@@ -79,15 +34,12 @@ int main(void)
ENTRY(ip); ENTRY(ip);
BLANK(); BLANK();
#undef ENTRY #undef ENTRY
DEFINE(IA32_RT_SIGFRAME_sigcontext,
offsetof (struct rt_sigframe_ia32, uc.uc_mcontext)); OFFSET(IA32_RT_SIGFRAME_sigcontext, rt_sigframe_ia32, uc.uc_mcontext);
BLANK(); BLANK();
#endif #endif
DEFINE(pbe_address, offsetof(struct pbe, address));
DEFINE(pbe_orig_address, offsetof(struct pbe, orig_address)); #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry)
DEFINE(pbe_next, offsetof(struct pbe, next));
BLANK();
#define ENTRY(entry) DEFINE(pt_regs_ ## entry, offsetof(struct pt_regs, entry))
ENTRY(bx); ENTRY(bx);
ENTRY(bx); ENTRY(bx);
ENTRY(cx); ENTRY(cx);
...@@ -107,7 +59,8 @@ int main(void) ...@@ -107,7 +59,8 @@ int main(void)
ENTRY(flags); ENTRY(flags);
BLANK(); BLANK();
#undef ENTRY #undef ENTRY
#define ENTRY(entry) DEFINE(saved_context_ ## entry, offsetof(struct saved_context, entry))
#define ENTRY(entry) OFFSET(saved_context_ ## entry, saved_context, entry)
ENTRY(cr0); ENTRY(cr0);
ENTRY(cr2); ENTRY(cr2);
ENTRY(cr3); ENTRY(cr3);
...@@ -115,26 +68,11 @@ int main(void) ...@@ -115,26 +68,11 @@ int main(void)
ENTRY(cr8); ENTRY(cr8);
BLANK(); BLANK();
#undef ENTRY #undef ENTRY
DEFINE(TSS_ist, offsetof(struct tss_struct, x86_tss.ist));
BLANK();
DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
BLANK();
DEFINE(__NR_syscall_max, sizeof(syscalls) - 1);
OFFSET(TSS_ist, tss_struct, x86_tss.ist);
BLANK(); BLANK();
OFFSET(BP_scratch, boot_params, scratch);
OFFSET(BP_loadflags, boot_params, hdr.loadflags);
OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch);
OFFSET(BP_version, boot_params, hdr.version);
OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment);
BLANK(); DEFINE(__NR_syscall_max, sizeof(syscalls) - 1);
DEFINE(PAGE_SIZE_asm, PAGE_SIZE);
#ifdef CONFIG_XEN
BLANK();
OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask);
OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending);
#undef ENTRY
#endif
return 0; return 0;
} }
...@@ -675,7 +675,7 @@ void __init early_cpu_init(void) ...@@ -675,7 +675,7 @@ void __init early_cpu_init(void)
const struct cpu_dev *const *cdev; const struct cpu_dev *const *cdev;
int count = 0; int count = 0;
#ifdef PROCESSOR_SELECT #ifdef CONFIG_PROCESSOR_SELECT
printk(KERN_INFO "KERNEL supported cpus:\n"); printk(KERN_INFO "KERNEL supported cpus:\n");
#endif #endif
...@@ -687,7 +687,7 @@ void __init early_cpu_init(void) ...@@ -687,7 +687,7 @@ void __init early_cpu_init(void)
cpu_devs[count] = cpudev; cpu_devs[count] = cpudev;
count++; count++;
#ifdef PROCESSOR_SELECT #ifdef CONFIG_PROCESSOR_SELECT
{ {
unsigned int j; unsigned int j;
......
...@@ -397,7 +397,7 @@ sysenter_past_esp: ...@@ -397,7 +397,7 @@ sysenter_past_esp:
* A tiny bit of offset fixup is necessary - 4*4 means the 4 words * A tiny bit of offset fixup is necessary - 4*4 means the 4 words
* pushed above; +8 corresponds to copy_thread's esp0 setting. * pushed above; +8 corresponds to copy_thread's esp0 setting.
*/ */
pushl_cfi ((TI_sysenter_return)-THREAD_SIZE_asm+8+4*4)(%esp) pushl_cfi ((TI_sysenter_return)-THREAD_SIZE+8+4*4)(%esp)
CFI_REL_OFFSET eip, 0 CFI_REL_OFFSET eip, 0
pushl_cfi %eax pushl_cfi %eax
...@@ -1411,8 +1411,7 @@ END(general_protection) ...@@ -1411,8 +1411,7 @@ END(general_protection)
#ifdef CONFIG_KVM_GUEST #ifdef CONFIG_KVM_GUEST
ENTRY(async_page_fault) ENTRY(async_page_fault)
RING0_EC_FRAME RING0_EC_FRAME
pushl $do_async_page_fault pushl_cfi $do_async_page_fault
CFI_ADJUST_CFA_OFFSET 4
jmp error_code jmp error_code
CFI_ENDPROC CFI_ENDPROC
END(apf_page_fault) END(apf_page_fault)
......
...@@ -1250,7 +1250,7 @@ ENTRY(xen_do_hypervisor_callback) # do_hypervisor_callback(struct *pt_regs) ...@@ -1250,7 +1250,7 @@ ENTRY(xen_do_hypervisor_callback) # do_hypervisor_callback(struct *pt_regs)
decl PER_CPU_VAR(irq_count) decl PER_CPU_VAR(irq_count)
jmp error_exit jmp error_exit
CFI_ENDPROC CFI_ENDPROC
END(do_hypervisor_callback) END(xen_do_hypervisor_callback)
/* /*
* Hypervisor uses this for application faults while it executes. * Hypervisor uses this for application faults while it executes.
......
...@@ -73,7 +73,7 @@ MAPPING_BEYOND_END = PAGE_TABLE_SIZE(LOWMEM_PAGES) << PAGE_SHIFT ...@@ -73,7 +73,7 @@ MAPPING_BEYOND_END = PAGE_TABLE_SIZE(LOWMEM_PAGES) << PAGE_SHIFT
*/ */
KERNEL_PAGES = LOWMEM_PAGES KERNEL_PAGES = LOWMEM_PAGES
INIT_MAP_SIZE = PAGE_TABLE_SIZE(KERNEL_PAGES) * PAGE_SIZE_asm INIT_MAP_SIZE = PAGE_TABLE_SIZE(KERNEL_PAGES) * PAGE_SIZE
RESERVE_BRK(pagetables, INIT_MAP_SIZE) RESERVE_BRK(pagetables, INIT_MAP_SIZE)
/* /*
...@@ -623,7 +623,7 @@ ENTRY(initial_code) ...@@ -623,7 +623,7 @@ ENTRY(initial_code)
* BSS section * BSS section
*/ */
__PAGE_ALIGNED_BSS __PAGE_ALIGNED_BSS
.align PAGE_SIZE_asm .align PAGE_SIZE
#ifdef CONFIG_X86_PAE #ifdef CONFIG_X86_PAE
initial_pg_pmd: initial_pg_pmd:
.fill 1024*KPMDS,4,0 .fill 1024*KPMDS,4,0
...@@ -644,7 +644,7 @@ ENTRY(swapper_pg_dir) ...@@ -644,7 +644,7 @@ ENTRY(swapper_pg_dir)
#ifdef CONFIG_X86_PAE #ifdef CONFIG_X86_PAE
__PAGE_ALIGNED_DATA __PAGE_ALIGNED_DATA
/* Page-aligned for the benefit of paravirt? */ /* Page-aligned for the benefit of paravirt? */
.align PAGE_SIZE_asm .align PAGE_SIZE
ENTRY(initial_page_table) ENTRY(initial_page_table)
.long pa(initial_pg_pmd+PGD_IDENT_ATTR),0 /* low identity map */ .long pa(initial_pg_pmd+PGD_IDENT_ATTR),0 /* low identity map */
# if KPMDS == 3 # if KPMDS == 3
...@@ -662,7 +662,7 @@ ENTRY(initial_page_table) ...@@ -662,7 +662,7 @@ ENTRY(initial_page_table)
# else # else
# error "Kernel PMDs should be 1, 2 or 3" # error "Kernel PMDs should be 1, 2 or 3"
# endif # endif
.align PAGE_SIZE_asm /* needs to be page-sized too */ .align PAGE_SIZE /* needs to be page-sized too */
#endif #endif
.data .data
......
...@@ -14,22 +14,9 @@ ...@@ -14,22 +14,9 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/thread_info.h> #include <linux/thread_info.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/bitmap.h>
#include <asm/syscalls.h> #include <asm/syscalls.h>
/* Set EXTENT bits starting at BASE in BITMAP to value TURN_ON. */
static void set_bitmap(unsigned long *bitmap, unsigned int base,
unsigned int extent, int new_value)
{
unsigned int i;
for (i = base; i < base + extent; i++) {
if (new_value)
__set_bit(i, bitmap);
else
__clear_bit(i, bitmap);
}
}
/* /*
* this changes the io permissions bitmap in the current task. * this changes the io permissions bitmap in the current task.
*/ */
...@@ -69,7 +56,10 @@ asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int turn_on) ...@@ -69,7 +56,10 @@ asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int turn_on)
*/ */
tss = &per_cpu(init_tss, get_cpu()); tss = &per_cpu(init_tss, get_cpu());
set_bitmap(t->io_bitmap_ptr, from, num, !turn_on); if (turn_on)
bitmap_clear(t->io_bitmap_ptr, from, num);
else
bitmap_set(t->io_bitmap_ptr, from, num);
/* /*
* Search for a (possibly new) maximum. This is simple and stupid, * Search for a (possibly new) maximum. This is simple and stupid,
......
...@@ -306,7 +306,7 @@ SECTIONS ...@@ -306,7 +306,7 @@ SECTIONS
} }
#if !defined(CONFIG_X86_64) || !defined(CONFIG_SMP) #if !defined(CONFIG_X86_64) || !defined(CONFIG_SMP)
PERCPU(THREAD_SIZE) PERCPU(PAGE_SIZE)
#endif #endif
. = ALIGN(PAGE_SIZE); . = ALIGN(PAGE_SIZE);
......
...@@ -15,14 +15,12 @@ ...@@ -15,14 +15,12 @@
/* if you want SMP support, implement these with real spinlocks */ /* if you want SMP support, implement these with real spinlocks */
.macro LOCK reg .macro LOCK reg
pushfl pushfl_cfi
CFI_ADJUST_CFA_OFFSET 4
cli cli
.endm .endm
.macro UNLOCK reg .macro UNLOCK reg
popfl popfl_cfi
CFI_ADJUST_CFA_OFFSET -4
.endm .endm
#define BEGIN(op) \ #define BEGIN(op) \
......
...@@ -14,14 +14,12 @@ ...@@ -14,14 +14,12 @@
#include <asm/dwarf2.h> #include <asm/dwarf2.h>
.macro SAVE reg .macro SAVE reg
pushl %\reg pushl_cfi %\reg
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET \reg, 0 CFI_REL_OFFSET \reg, 0
.endm .endm
.macro RESTORE reg .macro RESTORE reg
popl %\reg popl_cfi %\reg
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE \reg CFI_RESTORE \reg
.endm .endm
......
...@@ -50,11 +50,9 @@ unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) ...@@ -50,11 +50,9 @@ unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum)
*/ */
ENTRY(csum_partial) ENTRY(csum_partial)
CFI_STARTPROC CFI_STARTPROC
pushl %esi pushl_cfi %esi
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET esi, 0 CFI_REL_OFFSET esi, 0
pushl %ebx pushl_cfi %ebx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ebx, 0 CFI_REL_OFFSET ebx, 0
movl 20(%esp),%eax # Function arg: unsigned int sum movl 20(%esp),%eax # Function arg: unsigned int sum
movl 16(%esp),%ecx # Function arg: int len movl 16(%esp),%ecx # Function arg: int len
...@@ -132,11 +130,9 @@ ENTRY(csum_partial) ...@@ -132,11 +130,9 @@ ENTRY(csum_partial)
jz 8f jz 8f
roll $8, %eax roll $8, %eax
8: 8:
popl %ebx popl_cfi %ebx
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE ebx CFI_RESTORE ebx
popl %esi popl_cfi %esi
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE esi CFI_RESTORE esi
ret ret
CFI_ENDPROC CFI_ENDPROC
...@@ -148,11 +144,9 @@ ENDPROC(csum_partial) ...@@ -148,11 +144,9 @@ ENDPROC(csum_partial)
ENTRY(csum_partial) ENTRY(csum_partial)
CFI_STARTPROC CFI_STARTPROC
pushl %esi pushl_cfi %esi
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET esi, 0 CFI_REL_OFFSET esi, 0
pushl %ebx pushl_cfi %ebx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ebx, 0 CFI_REL_OFFSET ebx, 0
movl 20(%esp),%eax # Function arg: unsigned int sum movl 20(%esp),%eax # Function arg: unsigned int sum
movl 16(%esp),%ecx # Function arg: int len movl 16(%esp),%ecx # Function arg: int len
...@@ -260,11 +254,9 @@ ENTRY(csum_partial) ...@@ -260,11 +254,9 @@ ENTRY(csum_partial)
jz 90f jz 90f
roll $8, %eax roll $8, %eax
90: 90:
popl %ebx popl_cfi %ebx
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE ebx CFI_RESTORE ebx
popl %esi popl_cfi %esi
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE esi CFI_RESTORE esi
ret ret
CFI_ENDPROC CFI_ENDPROC
...@@ -309,14 +301,11 @@ ENTRY(csum_partial_copy_generic) ...@@ -309,14 +301,11 @@ ENTRY(csum_partial_copy_generic)
CFI_STARTPROC CFI_STARTPROC
subl $4,%esp subl $4,%esp
CFI_ADJUST_CFA_OFFSET 4 CFI_ADJUST_CFA_OFFSET 4
pushl %edi pushl_cfi %edi
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET edi, 0 CFI_REL_OFFSET edi, 0
pushl %esi pushl_cfi %esi
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET esi, 0 CFI_REL_OFFSET esi, 0
pushl %ebx pushl_cfi %ebx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ebx, 0 CFI_REL_OFFSET ebx, 0
movl ARGBASE+16(%esp),%eax # sum movl ARGBASE+16(%esp),%eax # sum
movl ARGBASE+12(%esp),%ecx # len movl ARGBASE+12(%esp),%ecx # len
...@@ -426,17 +415,13 @@ DST( movb %cl, (%edi) ) ...@@ -426,17 +415,13 @@ DST( movb %cl, (%edi) )
.previous .previous
popl %ebx popl_cfi %ebx
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE ebx CFI_RESTORE ebx
popl %esi popl_cfi %esi
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE esi CFI_RESTORE esi
popl %edi popl_cfi %edi
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE edi CFI_RESTORE edi
popl %ecx # equivalent to addl $4,%esp popl_cfi %ecx # equivalent to addl $4,%esp
CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(csum_partial_copy_generic) ENDPROC(csum_partial_copy_generic)
...@@ -459,14 +444,11 @@ ENDPROC(csum_partial_copy_generic) ...@@ -459,14 +444,11 @@ ENDPROC(csum_partial_copy_generic)
ENTRY(csum_partial_copy_generic) ENTRY(csum_partial_copy_generic)
CFI_STARTPROC CFI_STARTPROC
pushl %ebx pushl_cfi %ebx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ebx, 0 CFI_REL_OFFSET ebx, 0
pushl %edi pushl_cfi %edi
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET edi, 0 CFI_REL_OFFSET edi, 0
pushl %esi pushl_cfi %esi
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET esi, 0 CFI_REL_OFFSET esi, 0
movl ARGBASE+4(%esp),%esi #src movl ARGBASE+4(%esp),%esi #src
movl ARGBASE+8(%esp),%edi #dst movl ARGBASE+8(%esp),%edi #dst
...@@ -527,14 +509,11 @@ DST( movb %dl, (%edi) ) ...@@ -527,14 +509,11 @@ DST( movb %dl, (%edi) )
jmp 7b jmp 7b
.previous .previous
popl %esi popl_cfi %esi
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE esi CFI_RESTORE esi
popl %edi popl_cfi %edi
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE edi CFI_RESTORE edi
popl %ebx popl_cfi %ebx
CFI_ADJUST_CFA_OFFSET -4
CFI_RESTORE ebx CFI_RESTORE ebx
ret ret
CFI_ENDPROC CFI_ENDPROC
......
...@@ -23,43 +23,50 @@ ...@@ -23,43 +23,50 @@
#include <asm/dwarf2.h> #include <asm/dwarf2.h>
#define save_common_regs \ #define save_common_regs \
pushq %rdi; \ pushq_cfi %rdi; CFI_REL_OFFSET rdi, 0; \
pushq %rsi; \ pushq_cfi %rsi; CFI_REL_OFFSET rsi, 0; \
pushq %rcx; \ pushq_cfi %rcx; CFI_REL_OFFSET rcx, 0; \
pushq %r8; \ pushq_cfi %r8; CFI_REL_OFFSET r8, 0; \
pushq %r9; \ pushq_cfi %r9; CFI_REL_OFFSET r9, 0; \
pushq %r10; \ pushq_cfi %r10; CFI_REL_OFFSET r10, 0; \
pushq %r11 pushq_cfi %r11; CFI_REL_OFFSET r11, 0
#define restore_common_regs \ #define restore_common_regs \
popq %r11; \ popq_cfi %r11; CFI_RESTORE r11; \
popq %r10; \ popq_cfi %r10; CFI_RESTORE r10; \
popq %r9; \ popq_cfi %r9; CFI_RESTORE r9; \
popq %r8; \ popq_cfi %r8; CFI_RESTORE r8; \
popq %rcx; \ popq_cfi %rcx; CFI_RESTORE rcx; \
popq %rsi; \ popq_cfi %rsi; CFI_RESTORE rsi; \
popq %rdi popq_cfi %rdi; CFI_RESTORE rdi
/* Fix up special calling conventions */ /* Fix up special calling conventions */
ENTRY(call_rwsem_down_read_failed) ENTRY(call_rwsem_down_read_failed)
CFI_STARTPROC
save_common_regs save_common_regs
pushq %rdx pushq_cfi %rdx
CFI_REL_OFFSET rdx, 0
movq %rax,%rdi movq %rax,%rdi
call rwsem_down_read_failed call rwsem_down_read_failed
popq %rdx popq_cfi %rdx
CFI_RESTORE rdx
restore_common_regs restore_common_regs
ret ret
ENDPROC(call_rwsem_down_read_failed) CFI_ENDPROC
ENDPROC(call_rwsem_down_read_failed)
ENTRY(call_rwsem_down_write_failed) ENTRY(call_rwsem_down_write_failed)
CFI_STARTPROC
save_common_regs save_common_regs
movq %rax,%rdi movq %rax,%rdi
call rwsem_down_write_failed call rwsem_down_write_failed
restore_common_regs restore_common_regs
ret ret
ENDPROC(call_rwsem_down_write_failed) CFI_ENDPROC
ENDPROC(call_rwsem_down_write_failed)
ENTRY(call_rwsem_wake) ENTRY(call_rwsem_wake)
CFI_STARTPROC
decl %edx /* do nothing if still outstanding active readers */ decl %edx /* do nothing if still outstanding active readers */
jnz 1f jnz 1f
save_common_regs save_common_regs
...@@ -67,15 +74,20 @@ ENTRY(call_rwsem_wake) ...@@ -67,15 +74,20 @@ ENTRY(call_rwsem_wake)
call rwsem_wake call rwsem_wake
restore_common_regs restore_common_regs
1: ret 1: ret
ENDPROC(call_rwsem_wake) CFI_ENDPROC
ENDPROC(call_rwsem_wake)
/* Fix up special calling conventions */ /* Fix up special calling conventions */
ENTRY(call_rwsem_downgrade_wake) ENTRY(call_rwsem_downgrade_wake)
CFI_STARTPROC
save_common_regs save_common_regs
pushq %rdx pushq_cfi %rdx
CFI_REL_OFFSET rdx, 0
movq %rax,%rdi movq %rax,%rdi
call rwsem_downgrade_wake call rwsem_downgrade_wake
popq %rdx popq_cfi %rdx
CFI_RESTORE rdx
restore_common_regs restore_common_regs
ret ret
ENDPROC(call_rwsem_downgrade_wake) CFI_ENDPROC
ENDPROC(call_rwsem_downgrade_wake)
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
*/ */
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
ENTRY(__write_lock_failed) ENTRY(__write_lock_failed)
CFI_STARTPROC simple CFI_STARTPROC
FRAME FRAME
2: LOCK_PREFIX 2: LOCK_PREFIX
addl $ RW_LOCK_BIAS,(%eax) addl $ RW_LOCK_BIAS,(%eax)
...@@ -74,29 +74,23 @@ ENTRY(__read_lock_failed) ...@@ -74,29 +74,23 @@ ENTRY(__read_lock_failed)
/* Fix up special calling conventions */ /* Fix up special calling conventions */
ENTRY(call_rwsem_down_read_failed) ENTRY(call_rwsem_down_read_failed)
CFI_STARTPROC CFI_STARTPROC
push %ecx pushl_cfi %ecx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ecx,0 CFI_REL_OFFSET ecx,0
push %edx pushl_cfi %edx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET edx,0 CFI_REL_OFFSET edx,0
call rwsem_down_read_failed call rwsem_down_read_failed
pop %edx popl_cfi %edx
CFI_ADJUST_CFA_OFFSET -4 popl_cfi %ecx
pop %ecx
CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(call_rwsem_down_read_failed) ENDPROC(call_rwsem_down_read_failed)
ENTRY(call_rwsem_down_write_failed) ENTRY(call_rwsem_down_write_failed)
CFI_STARTPROC CFI_STARTPROC
push %ecx pushl_cfi %ecx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ecx,0 CFI_REL_OFFSET ecx,0
calll rwsem_down_write_failed calll rwsem_down_write_failed
pop %ecx popl_cfi %ecx
CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(call_rwsem_down_write_failed) ENDPROC(call_rwsem_down_write_failed)
...@@ -105,12 +99,10 @@ ENTRY(call_rwsem_wake) ...@@ -105,12 +99,10 @@ ENTRY(call_rwsem_wake)
CFI_STARTPROC CFI_STARTPROC
decw %dx /* do nothing if still outstanding active readers */ decw %dx /* do nothing if still outstanding active readers */
jnz 1f jnz 1f
push %ecx pushl_cfi %ecx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ecx,0 CFI_REL_OFFSET ecx,0
call rwsem_wake call rwsem_wake
pop %ecx popl_cfi %ecx
CFI_ADJUST_CFA_OFFSET -4
1: ret 1: ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(call_rwsem_wake) ENDPROC(call_rwsem_wake)
...@@ -118,17 +110,13 @@ ENTRY(call_rwsem_wake) ...@@ -118,17 +110,13 @@ ENTRY(call_rwsem_wake)
/* Fix up special calling conventions */ /* Fix up special calling conventions */
ENTRY(call_rwsem_downgrade_wake) ENTRY(call_rwsem_downgrade_wake)
CFI_STARTPROC CFI_STARTPROC
push %ecx pushl_cfi %ecx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ecx,0 CFI_REL_OFFSET ecx,0
push %edx pushl_cfi %edx
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET edx,0 CFI_REL_OFFSET edx,0
call rwsem_downgrade_wake call rwsem_downgrade_wake
pop %edx popl_cfi %edx
CFI_ADJUST_CFA_OFFSET -4 popl_cfi %ecx
pop %ecx
CFI_ADJUST_CFA_OFFSET -4
ret ret
CFI_ENDPROC CFI_ENDPROC
ENDPROC(call_rwsem_downgrade_wake) ENDPROC(call_rwsem_downgrade_wake)
......
...@@ -7,24 +7,6 @@ ...@@ -7,24 +7,6 @@
#include <linux/linkage.h> #include <linux/linkage.h>
#define ARCH_TRACE_IRQS_ON \
pushl %eax; \
pushl %ecx; \
pushl %edx; \
call trace_hardirqs_on; \
popl %edx; \
popl %ecx; \
popl %eax;
#define ARCH_TRACE_IRQS_OFF \
pushl %eax; \
pushl %ecx; \
pushl %edx; \
call trace_hardirqs_off; \
popl %edx; \
popl %ecx; \
popl %eax;
#ifdef CONFIG_TRACE_IRQFLAGS #ifdef CONFIG_TRACE_IRQFLAGS
/* put return address in eax (arg1) */ /* put return address in eax (arg1) */
.macro thunk_ra name,func .macro thunk_ra name,func
......
...@@ -22,26 +22,6 @@ ...@@ -22,26 +22,6 @@
CFI_ENDPROC CFI_ENDPROC
.endm .endm
/* rdi: arg1 ... normal C conventions. rax is passed from C. */
.macro thunk_retrax name,func
.globl \name
\name:
CFI_STARTPROC
SAVE_ARGS
call \func
jmp restore_norax
CFI_ENDPROC
.endm
.section .sched.text, "ax"
#ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
thunk rwsem_down_read_failed_thunk,rwsem_down_read_failed
thunk rwsem_down_write_failed_thunk,rwsem_down_write_failed
thunk rwsem_wake_thunk,rwsem_wake
thunk rwsem_downgrade_thunk,rwsem_downgrade_wake
#endif
#ifdef CONFIG_TRACE_IRQFLAGS #ifdef CONFIG_TRACE_IRQFLAGS
/* put return address in rdi (arg1) */ /* put return address in rdi (arg1) */
.macro thunk_ra name,func .macro thunk_ra name,func
...@@ -72,10 +52,3 @@ restore: ...@@ -72,10 +52,3 @@ restore:
RESTORE_ARGS RESTORE_ARGS
ret ret
CFI_ENDPROC CFI_ENDPROC
CFI_STARTPROC
SAVE_ARGS
restore_norax:
RESTORE_ARGS 1
ret
CFI_ENDPROC
...@@ -28,9 +28,9 @@ ENTRY(startup_xen) ...@@ -28,9 +28,9 @@ ENTRY(startup_xen)
__FINIT __FINIT
.pushsection .text .pushsection .text
.align PAGE_SIZE_asm .align PAGE_SIZE
ENTRY(hypercall_page) ENTRY(hypercall_page)
.skip PAGE_SIZE_asm .skip PAGE_SIZE
.popsection .popsection
ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux") ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment