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

[Xen-changelog] [xen-unstable] [IA64] enable Xen compilation with debug=y



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 7f67c15e2c917dc52a3f8acc0fdb79a63b894b15
# Parent  75f791c710dfcd086b80799a3498ff6e504811c5
[IA64] enable Xen compilation with debug=y

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
---
 xen/include/asm-ia64/linux/asm/hardirq.h     |   38 ---------------------------
 xen/arch/ia64/vmx/vlsapic.c                  |    2 -
 xen/arch/ia64/xen/domain.c                   |    2 -
 xen/arch/ia64/xen/xenmisc.c                  |    4 ++
 xen/include/asm-ia64/hardirq.h               |   10 +++++++
 xen/include/asm-ia64/linux/asm/README.origin |    1 
 xen/include/asm-ia64/vmx_vpd.h               |   22 ---------------
 7 files changed, 17 insertions(+), 62 deletions(-)

diff -r 75f791c710df -r 7f67c15e2c91 xen/arch/ia64/vmx/vlsapic.c
--- a/xen/arch/ia64/vmx/vlsapic.c       Thu Jun 15 09:51:58 2006 -0600
+++ b/xen/arch/ia64/vmx/vlsapic.c       Thu Jun 15 10:02:53 2006 -0600
@@ -388,7 +388,7 @@ void vlsapic_reset(VCPU *vcpu)
     vcpu->arch.arch_vmx.vlapic.vcpu = vcpu;
     hvm_vioapic_add_lapic(&vcpu->arch.arch_vmx.vlapic, vcpu);
 #endif
-    DPRINTK("VLSAPIC inservice base=%lp\n", &VLSAPIC_INSVC(vcpu,0) );
+    DPRINTK("VLSAPIC inservice base=%p\n", &VLSAPIC_INSVC(vcpu,0) );
 }
 
 /*
diff -r 75f791c710df -r 7f67c15e2c91 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Thu Jun 15 09:51:58 2006 -0600
+++ b/xen/arch/ia64/xen/domain.c        Thu Jun 15 10:02:53 2006 -0600
@@ -209,7 +209,7 @@ void startup_cpu_idle_loop(void)
 void startup_cpu_idle_loop(void)
 {
        /* Just some sanity to ensure that the scheduler is set up okay. */
-       ASSERT(current->domain == IDLE_DOMAIN_ID);
+       ASSERT(current->domain->domain_id == IDLE_DOMAIN_ID);
        raise_softirq(SCHEDULE_SOFTIRQ);
 
        continue_cpu_idle_loop();
diff -r 75f791c710df -r 7f67c15e2c91 xen/arch/ia64/xen/xenmisc.c
--- a/xen/arch/ia64/xen/xenmisc.c       Thu Jun 15 09:51:58 2006 -0600
+++ b/xen/arch/ia64/xen/xenmisc.c       Thu Jun 15 10:02:53 2006 -0600
@@ -155,6 +155,10 @@ void arch_dump_domain_info(struct domain
 {
 }
 
+void audit_domains_key(unsigned char key)
+{
+}
+
 void panic_domain(struct pt_regs *regs, const char *fmt, ...)
 {
        va_list args;
diff -r 75f791c710df -r 7f67c15e2c91 
xen/include/asm-ia64/linux/asm/README.origin
--- a/xen/include/asm-ia64/linux/asm/README.origin      Thu Jun 15 09:51:58 
2006 -0600
+++ b/xen/include/asm-ia64/linux/asm/README.origin      Thu Jun 15 10:02:53 
2006 -0600
@@ -18,7 +18,6 @@ dma.h                 -> linux/include/asm-ia64/dma.h
 dma.h                  -> linux/include/asm-ia64/dma.h
 fpswa.h                        -> linux/include/asm-ia64/fpswa.h
 fpu.h                  -> linux/include/asm-ia64/fpu.h
-hardirq.h              -> linux/include/asm-ia64/hardirq.h
 hdreg.h                        -> linux/include/asm-ia64/hdreg.h
 hw_irq.h               -> linux/include/asm-ia64/hw_irq.h
 intrinsics.h           -> linux/include/asm-ia64/intrinsics.h
diff -r 75f791c710df -r 7f67c15e2c91 xen/include/asm-ia64/vmx_vpd.h
--- a/xen/include/asm-ia64/vmx_vpd.h    Thu Jun 15 09:51:58 2006 -0600
+++ b/xen/include/asm-ia64/vmx_vpd.h    Thu Jun 15 10:02:53 2006 -0600
@@ -102,7 +102,7 @@ struct arch_vmx_struct {
 #define vmx_schedule_tail(next)         \
     (next)->thread.arch_vmx.arch_vmx_schedule_tail((next))
 
-#define VMX_DOMAIN(d)   d->arch.arch_vmx.flags
+#define VMX_DOMAIN(v)   v->arch.arch_vmx.flags
 
 #define ARCH_VMX_IO_WAIT        3       /* Waiting for I/O completion */
 #define ARCH_VMX_INTR_ASSIST    4       /* Need DM's assist to issue intr */
@@ -111,29 +111,9 @@ struct arch_vmx_struct {
 
 #define VMX_DEBUG 1
 #if VMX_DEBUG
-#define DBG_LEVEL_0     (1 << 0)
-#define DBG_LEVEL_1     (1 << 1)
-#define DBG_LEVEL_2     (1 << 2)
-#define DBG_LEVEL_3     (1 << 3)
-#define DBG_LEVEL_IO    (1 << 4)
-#define DBG_LEVEL_VMMU  (1 << 5)
-#define DBG_LEVEL_IOAPIC       (1 << 6)
 
 extern unsigned int opt_vmx_debug_level;
-#define VMX_DBG_LOG(level, _f, _a...)           \
-    if ((level) & opt_vmx_debug_level)          \
-        printk("[VMX]" _f "\n", ## _a )
-#else
-#define VMX_DBG_LOG(level, _f, _a...)
 #endif
-
-#define  __vmx_bug(regs)                                        \
-    do {                                                        \
-        printk("__vmx_bug at %s:%d\n", __FILE__, __LINE__);     \
-        show_registers(regs);                                   \
-        domain_crash(current->domain);                          \
-    } while (0)
-
 #endif //__ASSEMBLY__
 
 // VPD field offset
diff -r 75f791c710df -r 7f67c15e2c91 xen/include/asm-ia64/hardirq.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/include/asm-ia64/hardirq.h    Thu Jun 15 10:02:53 2006 -0600
@@ -0,0 +1,10 @@
+#ifndef __IA64__HARDIRQ__H__
+#define __IA64__HARDIRQ__H__
+
+#define __ARCH_IRQ_STAT        1
+#define HARDIRQ_BITS   14
+#include <linux/hardirq.h>
+
+#define local_softirq_pending()                
(local_cpu_data->softirq_pending)
+
+#endif
diff -r 75f791c710df -r 7f67c15e2c91 xen/include/asm-ia64/linux/asm/hardirq.h
--- a/xen/include/asm-ia64/linux/asm/hardirq.h  Thu Jun 15 09:51:58 2006 -0600
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-#ifndef _ASM_IA64_HARDIRQ_H
-#define _ASM_IA64_HARDIRQ_H
-
-/*
- * Modified 1998-2002, 2004 Hewlett-Packard Co
- *     David Mosberger-Tang <davidm@xxxxxxxxxx>
- */
-
-#include <linux/config.h>
-
-#include <linux/threads.h>
-#include <linux/irq.h>
-
-#include <asm/processor.h>
-
-/*
- * No irq_cpustat_t for IA-64.  The data is held in the per-CPU data structure.
- */
-
-#define __ARCH_IRQ_STAT        1
-
-#define local_softirq_pending()                
(local_cpu_data->softirq_pending)
-
-#define HARDIRQ_BITS   14
-
-/*
- * The hardirq mask has to be large enough to have space for potentially all 
IRQ sources
- * in the system nesting on a single CPU:
- */
-#if (1 << HARDIRQ_BITS) < NR_IRQS
-# error HARDIRQ_BITS is too low!
-#endif
-
-extern void __iomem *ipi_base_addr;
-
-void ack_bad_irq(unsigned int irq);
-
-#endif /* _ASM_IA64_HARDIRQ_H */

_______________________________________________
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®.