|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5.99.1 RFC 4/4] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform
On Wed, 25 Feb 2015, Frediano Ziglio wrote:
> Until vGIC support is not implemented and tested, this will prevent
> guest kernels to use their Hip04 driver, or crash when they don't
> have any.
>
> Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
> ---
> xen/arch/arm/gic-hip04.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/xen/arch/arm/gic-hip04.c b/xen/arch/arm/gic-hip04.c
> index a1ae520..afd2622 100644
> --- a/xen/arch/arm/gic-hip04.c
> +++ b/xen/arch/arm/gic-hip04.c
> @@ -601,17 +601,13 @@ static int gicv2_make_dt_node(const struct domain *d,
> const struct dt_device_node *node, void *fdt)
> {
> const struct dt_device_node *gic = dt_interrupt_controller;
> - const void *compatible = NULL;
> + const void *compatible;
> u32 len;
> const __be32 *regs;
> int res = 0;
>
> - compatible = dt_get_property(gic, "compatible", &len);
> - if ( !compatible )
> - {
> - dprintk(XENLOG_ERR, "Can't find compatible property for the gic
> node\n");
> - return -FDT_ERR_XEN(ENOENT);
> - }
> + compatible = DT_COMPAT_GIC_CORTEX_A15;
> + len = strlen((char*) compatible) + 1;
>
> res = fdt_begin_node(fdt, "interrupt-controller");
> if ( res )
It would be nice to have an in-code comment about this too.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |