Because it's undefined behaviour.

Signed-off-by: Roger Pau Monné <roger....@citrix.com>
---
Cc: Andrew Cooper <andrew.coop...@citrix.com>
---
 include/arch/x86/processor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/arch/x86/processor.h b/include/arch/x86/processor.h
index c9f253f..841953c 100644
--- a/include/arch/x86/processor.h
+++ b/include/arch/x86/processor.h
@@ -134,7 +134,7 @@
 /* Segment-based Error Code - supplemental constants. */
 #define X86_EC_TABLE_MASK (3  << 1)
 #define X86_EC_SEL_SHIFT  3
-#define X86_EC_SEL_MASK   (-1 << X86_EC_SEL_SHIFT)
+#define X86_EC_SEL_MASK   (-1U << X86_EC_SEL_SHIFT)
 #define X86_EC_GDT        0
 #define X86_EC_LDT        X86_EC_TI
 
-- 
2.7.4 (Apple Git-66)


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to