<div dir="ltr">btw, is there a unit test somewhere for the chain implementation?<div>otherwise I will think of a small program where I will try to make it fail with</div><div>double insert/erase.</div><div><br></div><div>Catalin</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 2:18 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 25/10/2018 13:03, Catalin Demergian wrote:<br>
> This is really strange. If you use cpsid/cpsie around the append_cnt ++<br>
> and --, then append_cnt should never be > 1. If this really the case,<br>
> then this looks like a processor bug.<br>
> -> No, after I saw that it didn't fix the problem I commented the <br>
> dis/en, so<br>
> the value 2 was obtained without the dis/en in the code.<br>
<br>
Maybe you could replace the arm_interrupt_disable/enable with the <br>
cpsid/cpsie (you need support for nesting).<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</blockquote></div>