From 8b74cbc7396bc20a15c9215888cb9f175225bcf3 Mon Sep 17 00:00:00 2001 From: Kedareswara rao Appana Date: Mon, 28 Jul 2014 18:32:55 +0530 Subject: [PATCH] xilkernel: fix issue with the static_pthread_support Enable the static_pthread_support when there is valid entries in the static_pthread_table. Signed-off-by: Kedareswara rao Appana Acked-by: Anirudha Sarangi --- lib/bsp/xilkernel/data/xilkernel.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bsp/xilkernel/data/xilkernel.tcl b/lib/bsp/xilkernel/data/xilkernel.tcl index c21f8953..1a0bd64e 100755 --- a/lib/bsp/xilkernel/data/xilkernel.tcl +++ b/lib/bsp/xilkernel/data/xilkernel.tcl @@ -353,7 +353,7 @@ proc generate {os_handle} { set static_pthread_table_handle [get_arrays static_pthread_table -of_objects $os_handle] if { $static_pthread_table_handle != "" } { #set n_init_self_pthreads [llength $static_pthread_table_handle] - set n_init_self_pthreads [llength [get_arrays $static_pthread_table_handle -of_objects $os_handle]] + set n_init_self_pthreads [llength [get_property PARAM.pthread_prio [get_arrays $static_pthread_table_handle -of_objects $os_handle]]] #set n_init_self_pthreads [get_property CONFIG.static_pthread_table $os_handle] if {$n_init_self_pthreads != "" } { xput_define $config_file "config_static_pthread_support" "true"