|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 09/15] xen/arm: psci: Detect SMCCC version
Julien, On 08.02.18 21:21, Julien Grall wrote: I find it strange to determine SMCCC version in PSCI code. psci.c is not the first place, where I will look for SMCCC version discovery. I think it is better to add smccc.c, where such functions can reside. index 5dda35cd7c..bc7b2260e8 100644 --- a/xen/arch/arm/psci.c +++ b/xen/arch/arm/psci.c @@ -37,6 +37,7 @@ #endifuint32_t psci_ver;+uint32_t smccc_ver; And this variable actually is not related to PSCI. static uint32_t psci_cpu_on_nr; @@ -57,6 +58,14 @@ void call_psci_system_reset(void) In patch "xen/arm: vsmc: Implement SMCCC 1.1" you return plain -1 in static bool handle_arch(struct cpu_user_regs *regs) Could you please move definition of ARM_SMCCC_NOT_SUPPORTED into that patch and use it in mentioned function or add new patch that changes -1 to ARM_SMCCC_NOT_SUPPORTED ? /* SMCCC function identifier range which is reserved for existing APIs */#define ARM_SMCCC_RESERVED_RANGE_START 0x0 -- Volodymyr Babchuk _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |