mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
e34bc403c3
commit
e03d4e8674
1 file changed
+1
-1
@@ -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
|
||||
|
||||