]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/osal.git/commitdiff
PRSDK-5253: moving the Intc_SystemEnable part of first time loop
authorAravind Batni <aravindbr@ti.com>
Mon, 29 Jul 2019 21:42:37 +0000 (17:42 -0400)
committerAravind Batni <aravindbr@ti.com>
Tue, 6 Aug 2019 15:10:42 +0000 (11:10 -0400)
Signed-off-by: Aravind Batni <aravindbr@ti.com>
arch/core/r5/Arch_util.c

index dafc098441bc68b32cbdc45b953730f65561e2f9..498053998dc580d65160c3736382784e5b3e0491 100755 (executable)
@@ -197,6 +197,7 @@ HwiP_Handle OsalArch_HwiPCreate(int32_t interruptNum, HwiP_Fxn hwiFxn,
                 gVimRegs = (CSL_vimRegs *)(uintptr_t)CSL_MAIN_DOMAIN_VIM_BASE_ADDR;
             }
             gFirstTime = FALSE;
+            Intc_SystemEnable();
         }
 
         /* Disable the interrupt first */
@@ -239,8 +240,6 @@ HwiP_Handle OsalArch_HwiPCreate(int32_t interruptNum, HwiP_Fxn hwiFxn,
             /* Disabling the interrupt in INTC. */
             Intc_IntDisable(interruptNum);
         }
-        Intc_SystemEnable();
-
     }
     return ((HwiP_Handle) (retHandle) );