Commit 1247c43a authored by Dimitris Lampridis's avatar Dimitris Lampridis

Merge branch '14-hmq-sizes-are-always-reported-as-zero' into 'master'

Resolve "HMQ sizes are always reported as zero"

Closes #14

See merge request be-cem-edl/chronos/wrtd!9
parents cd345239 f91d25e1
......@@ -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