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

Re: [Xen-devel] [PATCH v6 5/5] xen/arm: check for GICv3 platform support



Hi Vijay,

On 07/03/2014 09:37 AM, vijay.kilari@xxxxxxxxx wrote:
> ---
>  xen/arch/arm/gic-v3.c            |    4 ++++
>  xen/arch/arm/setup.c             |    5 +++--
>  xen/include/asm-arm/cpufeature.h |    1 +
>  xen/include/asm-arm/processor.h  |    5 ++---
>  4 files changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/xen/arch/arm/gic-v3.c b/xen/arch/arm/gic-v3.c
> index 8fd10c4..fde032d 100644
> --- a/xen/arch/arm/gic-v3.c
> +++ b/xen/arch/arm/gic-v3.c
> @@ -38,6 +38,7 @@
>  #include <asm/device.h>
>  #include <asm/gic.h>
>  #include <asm/gic_v3_defs.h>
> +#include <asm/cpufeature.h>
>  
>  struct rdist_region {
>      paddr_t base;
> @@ -1153,6 +1154,9 @@ static int __init gicv3_init(struct dt_device_node 
> *node, const void *data)
>      int res, i;
>      uint32_t reg;
>  
> +    if ( !cpu_has_gicv3 )
> +        panic("Platform does not support GICv3\n");

printk(XENLOG_ERR, "Platform does not support GICv3\n");
return -ENODEV;

?

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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