[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] using malloc() in a SIGNAL function
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] using malloc() in a SIGNAL function |
Date: |
Fri, 15 Apr 2005 20:33:00 +0200 (MET DST) |
"David Brown" <address@hidden> wrote:
> I haven't looked at the avrlibc implementation, but in general
> malloc is not re-entrant and must therefore be explicitly protected
Seconded. malloc() not even allowed in Posix signal handlers (and
thus, stdio is effectively forbidden there), let alone a hardware
interrupt handler.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)