[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] fix compilation breaking when compiling time.c with FRAME_POINTER on x86_64



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID a3fbce644bcc4247f535b62590d30905c5f9c88e
# Parent  61e7afb7344b6657246a2a0eec5dc0e3db4b1588
fix compilation breaking when compiling time.c with FRAME_POINTER on x86_64

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 61e7afb7344b -r a3fbce644bcc 
linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c  Tue Jan 31 23:56:19 2006
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c  Wed Feb  1 13:46:15 2006
@@ -541,16 +541,22 @@
 }
 
 #if defined(CONFIG_SMP) && defined(CONFIG_FRAME_POINTER)
+#ifdef __x86_64__
+#define REG_BP rbp
+#else
+#define REG_BP ebp
+#endif
 unsigned long profile_pc(struct pt_regs *regs)
 {
        unsigned long pc = instruction_pointer(regs);
 
        if (in_lock_functions(pc))
-               return *(unsigned long *)(regs->ebp + 4);
+               return *(unsigned long *)(regs->REG_BP + 4);
 
        return pc;
 }
 EXPORT_SYMBOL(profile_pc);
+#undef REG_BP
 #endif
 
 irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.