summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinthu Raja M2019-08-19 06:30:09 -0500
committerMahesh Radhakrishnan2019-09-10 15:00:37 -0500
commit94bd0b8f323f285c053e3618729485df3bc5e888 (patch)
treeec9f6f436652517d626aee2a578f3283eaef5232
parent7df52b9330ee5dccf99544c520d824b8689e738d (diff)
downloadosal-94bd0b8f323f285c053e3618729485df3bc5e888.tar.gz
osal-94bd0b8f323f285c053e3618729485df3bc5e888.tar.xz
osal-94bd0b8f323f285c053e3618729485df3bc5e888.zip
PRSDK-5851 OSAL update for SMP enabled examplesREL.PDK.J7.00.09.01.05
Issue: HwiParams targetProcList should not be updated for SMP enabled RTOS applcation, which is taken care by the BIOS. Fix: Add check to verify the example is not BIOS SMP enabled from the application, this will determines the targetProcList params shall be updated for the example.
-rw-r--r--src/tirtos/HwiP_tirtos.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tirtos/HwiP_tirtos.c b/src/tirtos/HwiP_tirtos.c
index 56400ab..b259363 100644
--- a/src/tirtos/HwiP_tirtos.c
+++ b/src/tirtos/HwiP_tirtos.c
@@ -218,9 +218,17 @@ HwiP_Handle HwiP_create(int32_t interruptNum, HwiP_Fxn hwiFxn,
218#endif 218#endif
219#if defined(gnu_targets_arm_A15F) 219#if defined(gnu_targets_arm_A15F)
220 /* Set the target interrupt to the running core */ 220 /* Set the target interrupt to the running core */
221 if(gOsal_HwAttrs.targetProcMask == OSAL_TARGET_PROC_MASK_DEFAULT) 221 if(!BIOS_smpEnabled)
222 { 222 {
223 hwiParams.targetProcList = 1 << Osal_getCoreId(); 223 if(gOsal_HwAttrs.targetProcMask == OSAL_TARGET_PROC_MASK_DEFAULT)
224 {
225 hwiParams.targetProcList = 1 << Osal_getCoreId();
226 }
227 else
228 {
229 hwiParams.targetProcList = gOsal_HwAttrs.targetProcMask;
230 }
231
224 } 232 }
225#endif 233#endif
226#endif 234#endif