From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version Date: Wed, 25 Feb 2015 15:34:55 +0000 Message-ID: <54EDEB9F.9080207@linaro.org> References: <7732c560d8620232fd0c40d6a4f5e564927f4e15.1424877088.git.frediano.ziglio@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7732c560d8620232fd0c40d6a4f5e564927f4e15.1424877088.git.frediano.ziglio@huawei.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Frediano Ziglio , Ian Campbell , Stefano Stabellini , Tim Deegan Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Frediano, On 25/02/15 15:28, Frediano Ziglio wrote: > HiSilison Hip04 platform use a slightly different version I honestly don't like the idea to copy the whole GIC-v2 drivers. It will require more maintenance for us. Is there any way to introduce callbacks in the GICv2 code where the hisilicon hardware differs? > Signed-off-by: Frediano Ziglio > --- > xen/arch/arm/Makefile | 2 +- > xen/arch/arm/gic-hip04.c | 788 +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 789 insertions(+), 1 deletion(-) > create mode 100644 xen/arch/arm/gic-hip04.c > > diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile > index 41aba2e..6fb8ba9 100644 > --- a/xen/arch/arm/Makefile > +++ b/xen/arch/arm/Makefile > @@ -11,7 +11,7 @@ obj-y += vpsci.o > obj-y += domctl.o > obj-y += sysctl.o > obj-y += domain_build.o > -obj-y += gic.o gic-v2.o > +obj-y += gic.o gic-v2.o gic-hip04.o As you do a verbatim copy, you should enable to compilation on the next patch. Regards, -- Julien Grall