diff packages/hal/arm/cl7211/current/src/cl7211_misc.c @ 42:94fd8fbfe8fe ecos-sw-1999-10-05

Merge from eCos master repository on 1999-10-05-12:38:44-BST
author jlarmour
date Tue, 05 Oct 1999 12:09:26 +0000
parents e7ba79f6d3a8
children a0774359f013
line wrap: on
line diff
--- a/packages/hal/arm/cl7211/current/src/cl7211_misc.c
+++ b/packages/hal/arm/cl7211/current/src/cl7211_misc.c
@@ -236,6 +236,12 @@ void hal_hardware_init(void)
     HAL_ICACHE_INVALIDATE_ALL();
     HAL_ICACHE_ENABLE();
     // Any hardware/platform initialization that needs to be done.
+    *(volatile cyg_uint32 *)INTMR1 = 0;
+    *(volatile cyg_uint32 *)INTMR2 = 0;
+#if !defined(__CL7111)
+    *(volatile cyg_uint32 *)INTMR3 = 0;
+    *(volatile cyg_uint8 *)SYSCON3 = SYSCON3_CLKCTL(CPU_CLOCK);
+#endif
 #if 0
     diag_printf("IMR1: %04x, IMR2: %04x\n",
                 *(volatile cyg_uint32 *)INTMR1,
@@ -246,12 +252,6 @@ void hal_hardware_init(void)
                 *(volatile cyg_uint8 *)DRFPR);
 #endif
     // Reset all interrupt masks (disable all interrupt sources)
-    *(volatile cyg_uint32 *)INTMR1 = 0;
-    *(volatile cyg_uint32 *)INTMR2 = 0;
-#if !defined(__CL7111)
-    *(volatile cyg_uint32 *)INTMR3 = 0;
-    *(volatile cyg_uint8 *)SYSCON3 = SYSCON3_CLKCTL(CPU_CLOCK);
-#endif
     for (vector = CYGNUM_HAL_ISR_MIN;  vector < CYGNUM_HAL_ISR_COUNT;  vector++) {
         icr = (volatile cyg_uint32 *)hal_interrupt_clear_map[vector];
         if (icr) *icr = 0;  // Just a write clears the latch