summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinthu Raja M2019-08-07 02:15:29 -0500
committerMahesh Radhakrishnan2019-09-10 15:00:37 -0500
commit6a686648eeeb62a934604c2782061b06999f5891 (patch)
tree20439a8b1f70336adf0a8dd174eb967b5b46f245
parent60189bd52c61b41e4c5d78be4a38327e5cc2bcbd (diff)
downloadosal-6a686648eeeb62a934604c2782061b06999f5891.tar.gz
osal-6a686648eeeb62a934604c2782061b06999f5891.tar.xz
osal-6a686648eeeb62a934604c2782061b06999f5891.zip
PRSDK-5851: Update code to enable interrupt in all cores of a15
Issue: Interrupt fails to triggered the ISR from non primary A15 core. Fix: Mask the target interrupt to the specific core in which the application is being loaded.
-rw-r--r--src/tirtos/HwiP_tirtos.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tirtos/HwiP_tirtos.c b/src/tirtos/HwiP_tirtos.c
index 7e14c5d..eb45902 100644
--- a/src/tirtos/HwiP_tirtos.c
+++ b/src/tirtos/HwiP_tirtos.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2015-2018, Texas Instruments Incorporated 2 * Copyright (c) 2015-2019, Texas Instruments Incorporated
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -46,6 +46,9 @@
46 46
47#if defined(gnu_targets_arm_A15F) || defined(gnu_targets_arm_A9F) 47#if defined(gnu_targets_arm_A15F) || defined(gnu_targets_arm_A9F)
48#include <ti/sysbios/family/arm/gic/Hwi.h> 48#include <ti/sysbios/family/arm/gic/Hwi.h>
49#if defined(gnu_targets_arm_A15F)
50#include <ti/csl/arch/a15/V0/csl_a15.h>
51#endif
49#elif defined(ti_targets_arm_elf_A8F) || \ 52#elif defined(ti_targets_arm_elf_A8F) || \
50 defined(ti_targets_arm_elf_A8Fnv) || \ 53 defined(ti_targets_arm_elf_A8Fnv) || \
51 defined(gnu_targets_arm_A8F) 54 defined(gnu_targets_arm_A8F)
@@ -215,6 +218,10 @@ HwiP_Handle HwiP_create(int32_t interruptNum, HwiP_Fxn hwiFxn,
215#if defined(gnu_targets_arm_A15F) || defined(gnu_targets_arm_A9F) || defined(__aarch64__) 218#if defined(gnu_targets_arm_A15F) || defined(gnu_targets_arm_A9F) || defined(__aarch64__)
216 hwiParams.triggerSensitivity = (UInt)params->triggerSensitivity; 219 hwiParams.triggerSensitivity = (UInt)params->triggerSensitivity;
217#endif 220#endif
221#if defined(gnu_targets_arm_A15F)
222 /* Set the target interrupt to the running core */
223 hwiParams.targetProcList = 1 << CSL_a15ReadCoreId();
224#endif
218#endif 225#endif
219#if defined (__TI_ARM_V7R4__) 226#if defined (__TI_ARM_V7R4__)
220 /* Set the trigger type */ 227 /* Set the trigger type */