Module Name: src Committed By: joerg Date: Tue Aug 22 12:52:24 UTC 2017
Modified Files: src/sys/arch/shark/shark: sequoia.h Log Message: Since left shifts of negative values is undefined, make sure the various constants are unsigned. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/shark/shark/sequoia.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/shark/shark/sequoia.h diff -u src/sys/arch/shark/shark/sequoia.h:1.2 src/sys/arch/shark/shark/sequoia.h:1.3 --- src/sys/arch/shark/shark/sequoia.h:1.2 Sat Mar 14 14:46:07 2009 +++ src/sys/arch/shark/shark/sequoia.h Tue Aug 22 12:52:24 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: sequoia.h,v 1.2 2009/03/14 14:46:07 dsl Exp $ */ +/* $NetBSD: sequoia.h,v 1.3 2017/08/22 12:52:24 joerg Exp $ */ /* * Copyright 1997 @@ -745,27 +745,27 @@ #define FOMPCR_V_PCON 0 #define FOMPCR_M_PCON 0x3FF << FOMPCR_V_PCON #define FOMPCR_V_PCON0 0 -#define FOMPCR_M_PCON0 1 << FOMPCR_V_PCON0 +#define FOMPCR_M_PCON0 1U << FOMPCR_V_PCON0 #define FOMPCR_V_PCON1 1 -#define FOMPCR_M_PCON1 1 << FOMPCR_V_PCON1 +#define FOMPCR_M_PCON1 1U << FOMPCR_V_PCON1 #define FOMPCR_V_PCON2 2 -#define FOMPCR_M_PCON2 1 << FOMPCR_V_PCON2 +#define FOMPCR_M_PCON2 1U << FOMPCR_V_PCON2 #define FOMPCR_V_PCON3 3 -#define FOMPCR_M_PCON3 1 << FOMPCR_V_PCON3 +#define FOMPCR_M_PCON3 1U << FOMPCR_V_PCON3 #define FOMPCR_V_PCON4 4 -#define FOMPCR_M_PCON4 1 << FOMPCR_V_PCON4 +#define FOMPCR_M_PCON4 1U << FOMPCR_V_PCON4 #define FOMPCR_V_PCON5 5 -#define FOMPCR_M_PCON5 1 << FOMPCR_V_PCON5 +#define FOMPCR_M_PCON5 1U << FOMPCR_V_PCON5 #define FOMPCR_V_PCON6 6 -#define FOMPCR_M_PCON6 1 << FOMPCR_V_PCON6 +#define FOMPCR_M_PCON6 1U << FOMPCR_V_PCON6 #define FOMPCR_V_PCON7 7 -#define FOMPCR_M_PCON7 1 << FOMPCR_V_PCON7 +#define FOMPCR_M_PCON7 1U << FOMPCR_V_PCON7 #define FOMPCR_V_PCON8 8 -#define FOMPCR_M_PCON8 1 << FOMPCR_V_PCON8 +#define FOMPCR_M_PCON8 1U << FOMPCR_V_PCON8 #define FOMPCR_V_PCON9 9 -#define FOMPCR_M_PCON9 1 << FOMPCR_V_PCON9 +#define FOMPCR_M_PCON9 1U << FOMPCR_V_PCON9 #define FOMPCR_V_GLBLPCEN 10 -#define FOMPCR_M_GLBLPCEN 1 << FOMPCR_V_GLBLPCEN +#define FOMPCR_M_GLBLPCEN 1U << FOMPCR_V_GLBLPCEN /* ** @@ -3008,27 +3008,27 @@ SEQPSR3_M_PC6PINEN | SEQPSR3_M_PC7PINEN | \ SEQPSR3_M_PC8PINEN | SEQPSR3_M_PC9PINEN ) #define SEQPSR3_V_PC0PINEN 0 -#define SEQPSR3_M_PC0PINEN 1 << SEQPSR3_V_PC0PINEN +#define SEQPSR3_M_PC0PINEN 1U << SEQPSR3_V_PC0PINEN #define SEQPSR3_V_PC2PINEN 2 -#define SEQPSR3_M_PC2PINEN 1 << SEQPSR3_V_PC2PINEN +#define SEQPSR3_M_PC2PINEN 1U << SEQPSR3_V_PC2PINEN #define SEQPSR3_V_PC3PINEN 3 -#define SEQPSR3_M_PC3PINEN 1 << SEQPSR3_V_PC3PINEN +#define SEQPSR3_M_PC3PINEN 1U << SEQPSR3_V_PC3PINEN #define SEQPSR3_V_PC4PINEN 4 -#define SEQPSR3_M_PC4PINEN 1 << SEQPSR3_V_PC4PINEN +#define SEQPSR3_M_PC4PINEN 1U << SEQPSR3_V_PC4PINEN #define SEQPSR3_V_PC5PINEN 5 -#define SEQPSR3_M_PC5PINEN 1 << SEQPSR3_V_PC5PINEN +#define SEQPSR3_M_PC5PINEN 1U << SEQPSR3_V_PC5PINEN #define SEQPSR3_V_PC6PINEN 6 -#define SEQPSR3_M_PC6PINEN 1 << SEQPSR3_V_PC6PINEN +#define SEQPSR3_M_PC6PINEN 1U << SEQPSR3_V_PC6PINEN #define SEQPSR3_V_PC7PINEN 7 -#define SEQPSR3_M_PC7PINEN 1 << SEQPSR3_V_PC7PINEN +#define SEQPSR3_M_PC7PINEN 1U << SEQPSR3_V_PC7PINEN #define SEQPSR3_V_PC8PINEN 8 -#define SEQPSR3_M_PC8PINEN 1 << SEQPSR3_V_PC8PINEN +#define SEQPSR3_M_PC8PINEN 1U << SEQPSR3_V_PC8PINEN #define SEQPSR3_V_PC9PINEN 9 -#define SEQPSR3_M_PC9PINEN 1 << SEQPSR3_V_PC9PINEN +#define SEQPSR3_M_PC9PINEN 1U << SEQPSR3_V_PC9PINEN #define SEQPSR3_V_EXTACT0PINEN 12 -#define SEQPSR3_M_EXTACT0PINEN 1 << SEQPSR3_V_EXTACT0PINEN +#define SEQPSR3_M_EXTACT0PINEN 1U << SEQPSR3_V_EXTACT0PINEN #define SEQPSR3_V_EXTACT1PINEN 15 -#define SEQPSR3_M_EXTACT1PINEN 1 << SEQPSR3_V_EXTACT1PINEN +#define SEQPSR3_M_EXTACT1PINEN 1U << SEQPSR3_V_EXTACT1PINEN /* **