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

[Xen-ia64-devel] RE: simplify hw_irq.h

To: "Isaku Yamahata" <yamahata@xxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] RE: simplify hw_irq.h
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Wed, 19 Mar 2008 17:34:37 +0800
Cc: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 19 Mar 2008 02:36:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080319024439.GG20249%yamahata@xxxxxxxxxxxxx>
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: <1205787486.7008.53.camel@lappy> <10EA09EFD8728347A513008B6B0DA77A02EBBF8C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080319024439.GG20249%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciJazS+z14/ebWmQPqYHPUXheXx8QAOTnhQ
Thread-topic: simplify hw_irq.h
Either are fine. 

-----Original Message-----
From: Isaku Yamahata [mailto:yamahata@xxxxxxxxxxxxx] 
Sent: 2008年3月19日 10:45
To: Dong, Eddie
Cc: Alex Williamson; xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: simplify hw_irq.h

Hi Eddie.
Thank you for the patches.

ia64_vector is for iosapic redirect vector which is 8bit width, isn't it?
So just unconditionally replacing u8 with u16 seems unreasonable.
How about the following?

#ifndef CONFIG_PARAVIRT
typedef u8 ia64_vector;
#else
typedef u16 ia64_vector;
#endif


On Tue, Mar 18, 2008 at 09:30:19PM +0800, Dong, Eddie wrote:

> This one should be safe and easy to be accepted to remove
> CONFIG_XEN.
> 
> 
>     Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@xxxxxxxxx>
> 
> diff --git a/include/asm-ia64/hw_irq.h b/include/asm-ia64/hw_irq.h
> index 80009cd..f670433 100644
> --- a/include/asm-ia64/hw_irq.h
> +++ b/include/asm-ia64/hw_irq.h
> @@ -15,11 +15,7 @@
>  #include <asm/ptrace.h>
>  #include <asm/smp.h>
> 
> -#ifndef CONFIG_XEN
> -typedef u8 ia64_vector;
> -#else
>  typedef u16 ia64_vector;
> -#endif
> 
>  /*
>   * 0 special



-- 
yamahata

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

<Prev in Thread] Current Thread [Next in Thread>