summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Zhang2019-10-03 05:11:34 -0500
committerMahesh Radhakrishnan2019-10-03 11:03:18 -0500
commit5e4515b34e788f473a5b8c6edbd50ffeb28a2686 (patch)
tree1ea40afbea83263b78efa9c2c3df6e58cece1c05
parentff8e7eb3e47fd214ea61590436ddb885dcfb5950 (diff)
downloadosal-5e4515b34e788f473a5b8c6edbd50ffeb28a2686.tar.gz
osal-5e4515b34e788f473a5b8c6edbd50ffeb28a2686.tar.xz
osal-5e4515b34e788f473a5b8c6edbd50ffeb28a2686.zip
osal: PRSDK-7114: fix unit test failure for SBL UART boot
Remove initialise_monitor_handles() which caused the crash. initialise_monitor_handles() is only required when using printf() Signed-off-by: Hao Zhang <hzhang@ti.com>
-rwxr-xr-xosal_component.mk5
-rwxr-xr-xtest/src/main_osal_test.c8
2 files changed, 5 insertions, 8 deletions
diff --git a/osal_component.mk b/osal_component.mk
index 7841841..530c13b 100755
--- a/osal_component.mk
+++ b/osal_component.mk
@@ -239,6 +239,8 @@ OSAL_Baremetal_TestApp_INCLUDE = $(OSAL_Baremetal_TestApp_PATH)
239OSAL_Baremetal_TestApp_BOARDLIST = $(libosal_BOARDLIST) 239OSAL_Baremetal_TestApp_BOARDLIST = $(libosal_BOARDLIST)
240export OSAL_Baremetal_TestApp_BOARDLIST 240export OSAL_Baremetal_TestApp_BOARDLIST
241 241
242OSAL_Baremetal_TestApp_SBL_APPIMAGEGEN = yes
243export OSAL_Baremetal_TestApp_SBL_APPIMAGEGEN
242 244
243# OSAL sysbios unit test app 245# OSAL sysbios unit test app
244OSAL_TestApp_COMP_LIST = OSAL_TestApp 246OSAL_TestApp_COMP_LIST = OSAL_TestApp
@@ -258,6 +260,9 @@ export OSAL_TestApp_BOARDLIST
258OSAL_TestApp_$(SOC)_CORELIST = $(osal_$(SOC)_CORELIST) 260OSAL_TestApp_$(SOC)_CORELIST = $(osal_$(SOC)_CORELIST)
259export OSAL_TestApp_$(SOC)_CORELIST 261export OSAL_TestApp_$(SOC)_CORELIST
260 262
263OSAL_TestApp_SBL_APPIMAGEGEN = yes
264export OSAL_TestApp_SBL_APPIMAGEGEN
265
261#Default Core List 266#Default Core List
262OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a15_0 c66x 267OSAL_Baremetal_TestApp_$(SOC)_CORELIST = a15_0 c66x
263 268
diff --git a/test/src/main_osal_test.c b/test/src/main_osal_test.c
index f41ea3b..d6d2573 100755
--- a/test/src/main_osal_test.c
+++ b/test/src/main_osal_test.c
@@ -1337,14 +1337,6 @@ void sysIdleLoop(void)
1337 */ 1337 */
1338int main(void) 1338int main(void)
1339{ 1339{
1340
1341#ifdef BARE_METAL
1342#if defined (__aarch64__)
1343 extern void initialise_monitor_handles(void);
1344 initialise_monitor_handles();
1345#endif
1346#endif
1347
1348#if defined(BUILD_C66X_1) || defined(BUILD_C66X_2) 1340#if defined(BUILD_C66X_1) || defined(BUILD_C66X_2)
1349/* To set C66 timer interrupts on J7ES VLAB */ 1341/* To set C66 timer interrupts on J7ES VLAB */
1350 C66xTimerInterruptInit(); 1342 C66xTimerInterruptInit();