WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [patch 4/4] fix debug=y build: fix refs to in_irq

To: Aron Griffis <aron@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-ia64-devel] [patch 4/4] fix debug=y build: fix refs to in_irq
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Fri, 2 Jun 2006 17:03:59 +0200
Delivery-date: Fri, 02 Jun 2006 07:59:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060602145146.GA28164@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060602145146.GA28164@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Vendredi 02 Juin 2006 16:51, Aron Griffis a écrit :
> I don't actually have a patch for this problem yet, but I'll describe
> the problem and maybe somebody will have a quick fix.
>
> In xen/common/page_alloc.c and xen/common/schedule.c, there's a number
> of these:
>
>     ASSERT(!in_irq());
>
> This *should* work fine on ia64, but the problem is that the include
> trail is mixed up.  On x86, it goes like this:
>
>     #include <xen/irq.h>     --> include/xen/irq.h
>     #include <asm/irq.h>     --> include/asm-x86/irq.h
>     #include <asm/hardirq.h> --> include/asm-x86/hardirq.h
>
>     and hardirq.h defines in_irq()
>
> On ia64 it goes like this instead:
>
>     #include <xen/irq.h>     --> include/xen/irq.h
>     #include <asm/irq.h>     --> include/asm-ia64/linux/asm/irq.h
>     #include <asm/hardirq.h> --> include/asm-ia64/linux/asm/hardirq.h
>
>     but in_irq() is defined in a *different* hardirq.h which lives at
>     include/asm-ia64/linux-xen/linux/hardirq.h
>
> Any suggestions on the best way to handle this?  If you want to see it
> break for yourself, apply the first three patches in this patch bomb,
> then "cd xen; make debug=y"
Yes, I once tried to fix debug=y, but stopped after that.

I think the best solution is to create an asm-ia64/hardirq.h from 
linux-xen/linux/hardirq.h and linux/asm/hardirq.h

Xen/ia64 was heavily leveraged from Linux, but I think it's time to slowly go 
away.

Just my 0.02 eurs :-)

Tristan.

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