|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V5 05/10] xen/arm64: gicv3: Use AFF1 when translating ICC_SGI1R_EL1 to cpumask
On 31/05/2015 16:25, Chen Baozi wrote: On May 31, 2015, at 21:14, Julien Grall <julien.grall@xxxxxxxxxx> wrote: On 30/05/2015 12:07, Chen Baozi wrote: cpumask_t is a structure containing a bitmap. You are assuming that the address of cpumask_t is always equal to cpumask_t.bitmap. There is helper to get the correct address (see cpumask_bits(cpumask)).Furthermore, there is function to copy a bitmap (see bitmap_copy). Although it will require more than 1 line of code. If you don't want to use it please use a direct assignation (it's only a 16 bits data) which will always be faster than a memcpy. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |