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

[mynewt-core] branch master updated: libc/baselibc: Build right memset version for Cortex-m4

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 74947c0  libc/baselibc: Build right memset version for Cortex-m4
74947c0 is described below

commit 74947c0f4bca13d562640c2240c6ad4c6616f093
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon Jul 15 18:23:19 2019 +0200

    libc/baselibc: Build right memset version for Cortex-m4
    
    Coretex-M0 version was build for all arm CPUs due to __CORTEX_M not
    being defined.
---
 libc/baselibc/src/memset.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libc/baselibc/src/memset.c b/libc/baselibc/src/memset.c
index 7fd6b47..e67f1a5 100644
--- a/libc/baselibc/src/memset.c
+++ b/libc/baselibc/src/memset.c
@@ -5,6 +5,10 @@
 #include <string.h>
 #include <stdint.h>
 
+#if defined(__arm__)
+#include <mcu/cmsis_nvic.h>
+#endif
+
 void *memset(void *dst, int c, size_t n)
 {
 	char *q = dst;