On 28.02.2017 14:42, Józef Kucia wrote:
reg_maps->tgsm_count = reg_idx + 1;
Wouldn't it be better to set it to max(reg_maps->tgsm_count, ...) to allow decreasing reg indices (even if not seen in practice yet)? Alternatively you could also get rid of this variable and update patch 6 to check the index against the capacity.
Best regards, Sebastian