You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/09/30 20:16:07 UTC

[mynewt-core] branch master updated (04933eba6 -> 51061cd92)

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


    from 04933eba6 hw/ipc_nrf5340: Add support for HCI IPC transport
     new 8a8fe43a2 lwipopts: Add restriction for thread safe heap
     new 51061cd92 apps/iptest: Enable thread safe heap allocations

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 apps/iptest/syscfg.yml                               | 1 +
 {apps/metrics => net/ip/lwip_mn/lwipopts}/syscfg.yml | 9 +++------
 2 files changed, 4 insertions(+), 6 deletions(-)
 copy {apps/metrics => net/ip/lwip_mn/lwipopts}/syscfg.yml (85%)


[mynewt-core] 02/02: apps/iptest: Enable thread safe heap allocations

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 51061cd927f5932f01628bea75bfaacc88fbd852
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Sep 27 20:49:24 2022 +0200

    apps/iptest: Enable thread safe heap allocations
    
    This just forces baselibc to have thread-safe
    heap allocation functions that are required if LWIP
    uses stdlib heap instead of its own version that could
    be enabled.
---
 apps/iptest/syscfg.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/iptest/syscfg.yml b/apps/iptest/syscfg.yml
index c2d4196e7..e97cb5632 100644
--- a/apps/iptest/syscfg.yml
+++ b/apps/iptest/syscfg.yml
@@ -41,3 +41,4 @@ syscfg.vals:
 
     ETH_0: 1
 
+    BASELIBC_THREAD_SAFE_HEAP_ALLOCATION: 1


[mynewt-core] 01/02: lwipopts: Add restriction for thread safe heap

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 8a8fe43a275fb77d7239d81af563429a1ea35f70
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Sep 27 20:44:06 2022 +0200

    lwipopts: Add restriction for thread safe heap
    
    Default lwipopts.h defines MEM_LIBC_MALLOC that means
    that standard stdlib functions malloc/calloc/free will be
    used by LWIP.
    This adds restriction that requires baselibc heap functions
    to be thread safe.
---
 net/ip/lwip_mn/lwipopts/syscfg.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/net/ip/lwip_mn/lwipopts/syscfg.yml b/net/ip/lwip_mn/lwipopts/syscfg.yml
new file mode 100644
index 000000000..b95a4f9d6
--- /dev/null
+++ b/net/ip/lwip_mn/lwipopts/syscfg.yml
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+syscfg.restrictions:
+    # As long as MEM_LIBC_MALLOC is 1 this restriction applies
+    - 'BASELIBC_THREAD_SAFE_HEAP_ALLOCATION'