|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv4 34/43] plat/common: Implement PSCI despatch functions for arm64
Hi, On 06/07/18 10:03, Wei Chen wrote:
The prototype looks a bit strange:
- It is possible to have multiple arguments
- The function identifiers are 32-bit
- The PSCI spec (5.2.2 in ARM DEN 0022D) describes the error code as
32-bit signed integers. So the return should be int32_t or int.
Lastly, this is based on the SMC Calling Convention. So I would rename all of this to "smccc_*_call". + /* PSCI conduit types */ #define PSCI_METHOD_NONE 0x0 #define PSCI_METHOD_HVC 0x1 diff --git a/plat/common/include/arm/arm64/cpu_defs.h b/plat/common/include/arm/arm64/cpu_defs.h index 591d632..315d027 100644 --- a/plat/common/include/arm/arm64/cpu_defs.h +++ b/plat/common/include/arm/arm64/cpu_defs.h @@ -105,6 +105,20 @@ END(name) #define PSR_N 0x80000000 #define PSR_FLAGS 0xf0000000+/*+ * Power State Coordination Interface (PSCI v0.2) function codes + */ +#define PSCI_FNID_VERSION 0x84000000 +#define PSCI_FNID_CPU_SUSPEND 0xc4000001 +#define PSCI_FNID_CPU_OFF 0x84000002 +#define PSCI_FNID_CPU_ON 0xc4000003 +#define PSCI_FNID_AFFINITY_INFO 0xc4000004 +#define PSCI_FNID_MIGRATE 0xc4000005 +#define PSCI_FNID_MIGRATE_INFO_TYPE 0x84000006 +#define PSCI_FNID_MIGRATE_INFO_UP_CPU 0xc4000007 +#define PSCI_FNID_SYSTEM_OFF 0x84000008 +#define PSCI_FNID_SYSTEM_RESET 0x84000009 + /* * The supported virtual address bits. * We will do 1:1 VA to PA Mapping, so we define the same address size Cheers, -- Julien Grall _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |