You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/08/30 17:39:00 UTC
[GitHub] andrzej-kaczmarek closed pull request #1367: kernel/os: Add some
idle task stack for SystemView
andrzej-kaczmarek closed pull request #1367: kernel/os: Add some idle task stack for SystemView
URL: https://github.com/apache/mynewt-core/pull/1367
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/kernel/os/include/os/arch/cortex_m0/os/os_arch.h b/kernel/os/include/os/arch/cortex_m0/os/os_arch.h
index 89ae4a1055..900ab9c3da 100644
--- a/kernel/os/include/os/arch/cortex_m0/os/os_arch.h
+++ b/kernel/os/include/os/arch/cortex_m0/os/os_arch.h
@@ -47,7 +47,11 @@ typedef uint32_t os_stack_t;
* Stack sizes for common OS tasks
*/
#define OS_SANITY_STACK_SIZE (64)
+#if MYNEWT_VAL(OS_SYSVIEW)
+#define OS_IDLE_STACK_SIZE (80)
+#else
#define OS_IDLE_STACK_SIZE (64)
+#endif
#define OS_STACK_ALIGN(__nmemb) \
(OS_ALIGN((__nmemb), OS_STACK_ALIGNMENT))
diff --git a/kernel/os/include/os/arch/cortex_m3/os/os_arch.h b/kernel/os/include/os/arch/cortex_m3/os/os_arch.h
index 598ac0dc65..4e9cd70796 100644
--- a/kernel/os/include/os/arch/cortex_m3/os/os_arch.h
+++ b/kernel/os/include/os/arch/cortex_m3/os/os_arch.h
@@ -48,7 +48,11 @@ typedef uint32_t os_stack_t;
* Stack sizes for common OS tasks
*/
#define OS_SANITY_STACK_SIZE (64)
+#if MYNEWT_VAL(OS_SYSVIEW)
+#define OS_IDLE_STACK_SIZE (80)
+#else
#define OS_IDLE_STACK_SIZE (64)
+#endif
#define OS_STACK_ALIGN(__nmemb) \
(OS_ALIGN((__nmemb), OS_STACK_ALIGNMENT))
diff --git a/kernel/os/include/os/arch/cortex_m4/os/os_arch.h b/kernel/os/include/os/arch/cortex_m4/os/os_arch.h
index e31dc4acf6..f2f517d365 100644
--- a/kernel/os/include/os/arch/cortex_m4/os/os_arch.h
+++ b/kernel/os/include/os/arch/cortex_m4/os/os_arch.h
@@ -48,7 +48,11 @@ typedef uint32_t os_stack_t;
* Stack sizes for common OS tasks
*/
#define OS_SANITY_STACK_SIZE (64)
+#if MYNEWT_VAL(OS_SYSVIEW)
+#define OS_IDLE_STACK_SIZE (80)
+#else
#define OS_IDLE_STACK_SIZE (64)
+#endif
#define OS_STACK_ALIGN(__nmemb) \
(OS_ALIGN((__nmemb), OS_STACK_ALIGNMENT))
diff --git a/kernel/os/include/os/arch/cortex_m7/os/os_arch.h b/kernel/os/include/os/arch/cortex_m7/os/os_arch.h
index 5671c756cd..d82b25bd2a 100644
--- a/kernel/os/include/os/arch/cortex_m7/os/os_arch.h
+++ b/kernel/os/include/os/arch/cortex_m7/os/os_arch.h
@@ -48,7 +48,11 @@ typedef uint32_t os_stack_t;
* Stack sizes for common OS tasks
*/
#define OS_SANITY_STACK_SIZE (64)
+#if MYNEWT_VAL(OS_SYSVIEW)
+#define OS_IDLE_STACK_SIZE (80)
+#else
#define OS_IDLE_STACK_SIZE (64)
+#endif
#define OS_STACK_ALIGN(__nmemb) \
(OS_ALIGN((__nmemb), OS_STACK_ALIGNMENT))
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services