xen/arm: fix GIC_INVALID_LR

GIC_INVALID_LR should be 0xff, but actually, defined as ~(uint8_t)0, is
0xffffffff. Fix the problem by placing the ~ operator before the cast.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
Stefano Stabellini committed 2017-01-03 13:52:35 -08:00
1 parent e34bc403c3
commit e03d4e8674
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ struct pending_irq
unsigned long status;
struct irq_desc *desc; /* only set it the irq corresponds to a physical irq */
unsigned int irq;
#define GIC_INVALID_LR ~(uint8_t)0
#define GIC_INVALID_LR (uint8_t)~0
uint8_t lr;
uint8_t priority;
/* inflight is used to append instances of pending_irq to
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.