From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v6 02/15] xen/arm: basic PSCI support, implement cpu_on and cpu_off Date: Tue, 7 May 2013 12:50:28 +0100 Message-ID: <5188EA84.8090704@citrix.com> References: <1367578301-32470-2-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1367578301-32470-2-git-send-email-stefano.stabellini@eu.citrix.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: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 05/03/2013 11:51 AM, Stefano Stabellini wrote: > diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c > new file mode 100644 > index 0000000..562ef0b > --- /dev/null > +++ b/xen/arch/arm/psci.c > @@ -0,0 +1,76 @@ > +/* > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + */ > + > +#include > +#include > +#include > + > +#include > +#include > + > +int do_psci_cpu_on(uint32_t vcpuid, register_t entry_point) I have a compilation error on arm64, here you define entry_point as register_t but when you declare the prototype (see below), you use uint32_t. > diff --git a/xen/include/asm-arm/psci.h b/xen/include/asm-arm/psci.h > new file mode 100644 > index 0000000..8511eb1 > --- /dev/null > +++ b/xen/include/asm-arm/psci.h > @@ -0,0 +1,24 @@ > +#ifndef __ASM_PSCI_H__ > +#define __ASM_PSCI_H__ > + > +#define PSCI_SUCCESS 0 > +#define PSCI_ENOSYS -1 > +#define PSCI_EINVAL -2 > 4 th eu+#define PSCI_DENIED -3 > + > +int do_psci_cpu_on(uint32_t vcpuid, uint32_t entry_point); Prototype here. > +int do_psci_cpu_off(uint32_t power_state); > +int do_psci_cpu_suspend(uint32_t power_state, uint32_t entry_point); Same for do_psci_cpu_suspend, entry_point should be register_t. > +int do_psci_migrate(uint32_t vcpuid); > + -- Julien