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 <appanad@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
Kedareswara rao Appana 2014-07-28 18:32:55 +05:30 committed by Jagannadha Sutradharudu Teki
parent e2388c02d7
commit 8b74cbc739

View file

@ -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"