X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fcortex_m.h;h=54767c5dfd62a6e0ef535a671af8bef9bcb10884;hp=3f0d55c1c24f5160ef3e6505c9413c0f5d4262a5;hb=8f299c6aec299f7231005a1ba7526ed2758414c3;hpb=b76a7a82b20fcf265a7b211e6ef97b759a8cb714 diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h index 3f0d55c1c2..54767c5dfd 100644 --- a/src/target/cortex_m.h +++ b/src/target/cortex_m.h @@ -17,7 +17,7 @@ #include "armv7m.h" #include "helper/bits.h" -#define CORTEX_M_COMMON_MAGIC 0x1A451A45 +#define CORTEX_M_COMMON_MAGIC 0x1A451A45U #define SYSTEM_CONTROL_BASE 0x400FE000 @@ -199,7 +199,7 @@ enum cortex_m_isrmasking_mode { }; struct cortex_m_common { - int common_magic; + unsigned int common_magic; /* Context information */ uint32_t dcb_dhcsr;