From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109944 invoked by alias); 27 Jun 2017 20:07:03 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 109934 invoked by uid 89); 27 Jun 2017 20:07:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=decades, Coast, coast, H*r:ip*192.168.1.7 X-HELO: homiemail-a122.g.dreamhost.com Received: from sub5.mail.dreamhost.com (HELO homiemail-a122.g.dreamhost.com) (208.113.200.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Jun 2017 20:07:01 +0000 Received: from homiemail-a122.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a122.g.dreamhost.com (Postfix) with ESMTP id 4119360001102; Tue, 27 Jun 2017 13:07:00 -0700 (PDT) Received: from [192.168.1.7] (pool-72-74-171-167.bstnma.fios.verizon.net [72.74.171.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: drn@nadler.com) by homiemail-a122.g.dreamhost.com (Postfix) with ESMTPSA id CAE0F60001104; Tue, 27 Jun 2017 13:06:59 -0700 (PDT) Subject: Re: Confusion about possibly unsafe malloc_r? To: Freddie Chopin Cc: newlib References: <1498371337.1704.1.camel@op.pl> <1498587972.1694.1.camel@op.pl> From: Dave Nadler Message-ID: <166d7c46-08e3-9beb-07da-39295b7c2103@nadler.com> Date: Tue, 27 Jun 2017 20:07:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <1498587972.1694.1.camel@op.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00492.txt.bz2 Now I'm really confused. I'm working with newlib version 2.5 as distributed in the GNU ARM Toolchain. I implemented everything I could find in the documentation. Is the following correct and complete WRT newlib 2.5.0 ??? http://www.nadler.com/embedded/draft1_newlibAndFreeRTOS.html Thanks, Best Regards, Dave PS: Kudos for pushing C++; we've been doing so for a couple decades. But FreeRTOS has a lot of advantages and required by some of our customers, and works fine for C++ (though I've added some ctor/dtor wrappers to ensure symmetric acquisition/release of interrupts, locks, semaphores, etc.). On 6/27/2017 2:26 PM, Freddie Chopin wrote: > On Sun, 2017-06-25 at 10:22 -0400, Dave Nadler wrote: >> Could you point me at documentation (or sources) explaining how >> to implement "retargetable locks"? > "Retargetable locks" are a new feature, introduced at the beginning of > this year. You can see an example implementation in my C++ RTOS here: > > https://github.com/DISTORTEC/distortos/blob/master/source/newlib/locking.cpp > > Regards, > FCh -- Dave Nadler, USA East Coast voice (978) 263-0097, drn@nadler.com, Skype Dave.Nadler1