Commit f91d25e1 authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw: fix init of hmq sizes

parent cd345239
......@@ -157,10 +157,11 @@ wrtd_status wrtd_init(uint32_t node_id,
"%s: Too many CPUs detected.", __func__);
/* Set HMQ words. */
for (i = 0; i < cfgrom->n_cpu; i++)
if (cfgrom->n_hmq[i] < 0)
for (i = 0; i < cfgrom->n_cpu; i++) {
if (cfgrom->n_hmq[i] > 0)
res->hmq_words[i] = TRTL_CONFIG_ROM_MQ_SIZE_PAYLOAD
(cfgrom->hmq[i][0].sizes);
}
for (i = 0; i < cfgrom->n_cpu; i++) {
status = wrtd_msg_get_config(res, i, &msg, __func__);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment