avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #44140] wdt_disable() macro clobbers prescaller bits


From: Georg-Johann Lay
Subject: [avr-libc-dev] [bug #44140] wdt_disable() macro clobbers prescaller bits and can cause unexpected resets
Date: Wed, 06 May 2015 11:40:00 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0

Follow-up Comment #4, bug #44140 (project avr-libc):

Remaks to

https://savannah.nongnu.org/bugs/download.php?file_id=33934

* adds "memory" clobber to all

* use constraint "d" with ORI reg

* use constraint "n" with SFR_MEM_ADDR

* use "n" with some non-address compile time constants

* use SFR_MEM_ADDR if used in LDS / STS

* use SFR_IO_ADDR if used in IN / OUT

This is completely untested.  In particular, the right fix for the latter 2
might be to use LDS/STS instead of IN/OUT and not adjusting operands.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?44140>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]