]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Introduce INVALID_VCPU_ID
authorJulien Grall <julien.grall@arm.com>
Wed, 8 Mar 2017 18:06:01 +0000 (18:06 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 8 Mar 2017 18:59:23 +0000 (10:59 -0800)
Define INVALID_VCPU_ID as MAX_VIRT_CPUS to avoid casting problem later
on. At the moment it can always fit in uint8_t.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/config.h

index ba61f65a391e109d171e394891016f460911c1bd..6a92f53f72f056ae5236064553a0384ecaac9c1f 100644 (file)
@@ -46,6 +46,8 @@
 #define MAX_VIRT_CPUS 8
 #endif
 
+#define INVALID_VCPU_ID MAX_VIRT_CPUS
+
 #define asmlinkage /* Nothing needed */
 
 #define __LINUX_ARM_ARCH__ 7