]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/hal/arm/mx25/var/v2_0/include/hal_var_ints.h
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / hal / arm / mx25 / var / v2_0 / include / hal_var_ints.h
index 98bbe3b38acb9c21a641cb407a7913e71ac1f7ab..6319f9a93e0606d10e7a099e65133e5788a9e689 100644 (file)
@@ -114,11 +114,11 @@ externC void hal_clock_latency(cyg_uint32 *);
 
 //----------------------------------------------------------------------------
 // Reset.
-#define HAL_PLATFORM_RESET()                                        \
-        CYG_MACRO_START                                             \
-                *(volatile unsigned short *)WDOG_BASE_ADDR |= 0x4;  \
-                /* hang here forever if reset fails */              \
-                while (1){}                                         \
+#define HAL_PLATFORM_RESET()                                                                                           \
+        CYG_MACRO_START                                                                                                                \
+                *(volatile unsigned short *)WDOG_BASE_ADDR &= ~(1 << 4);       \
+                /* hang here forever if reset fails */                                         \
+                while (1){}                                                                                                    \
         CYG_MACRO_END
 
 // Fallback (never really used)