You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/01/23 00:38:24 UTC

incubator-mynewt-larva git commit: Rename nzbss section to .bss.core.nz; move attribute defines to bsp.h

Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 7a82be0e5 -> bd78c4252


Rename nzbss section to .bss.core.nz; move attribute defines to bsp.h


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/bd78c425
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/bd78c425
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/bd78c425

Branch: refs/heads/master
Commit: bd78c425214a896d52961f7aee04b73a1bd5dd49
Parents: 7a82be0
Author: Christopher Collins <cc...@gmail.com>
Authored: Fri Jan 22 15:28:50 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Fri Jan 22 15:37:25 2016 -0800

----------------------------------------------------------------------
 hw/bsp/native/include/bsp/bsp.h                 |  5 +++
 hw/bsp/nrf52pdk/include/bsp/bsp.h               |  5 +++
 hw/bsp/nrf52pdk/nrf52pdk.ld                     | 38 ++++++++++----------
 .../include/bsp/bsp.h                           |  5 +++
 hw/bsp/stm32f3discovery/include/bsp/bsp.h       |  5 +++
 5 files changed, 39 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/bd78c425/hw/bsp/native/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/native/include/bsp/bsp.h b/hw/bsp/native/include/bsp/bsp.h
index b89f3bd..ce9493c 100644
--- a/hw/bsp/native/include/bsp/bsp.h
+++ b/hw/bsp/native/include/bsp/bsp.h
@@ -20,6 +20,11 @@
 extern "C" {
 #endif
 
+/* Define special stackos sections */
+#define sec_data_core
+#define sec_bss_core
+#define sec_bss_nz_core
+
 /* LED pins */
 #define LED_BLINK_PIN   (0x1)
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/bd78c425/hw/bsp/nrf52pdk/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52pdk/include/bsp/bsp.h b/hw/bsp/nrf52pdk/include/bsp/bsp.h
index 7ec6b58..bcc0e05 100644
--- a/hw/bsp/nrf52pdk/include/bsp/bsp.h
+++ b/hw/bsp/nrf52pdk/include/bsp/bsp.h
@@ -21,6 +21,11 @@
 extern "C" {
 #endif
 
+/* Define special stackos sections */
+#define sec_data_core   __attribute__((section(".data.core")))
+#define sec_bss_core    __attribute__((section(".bss.core")))
+#define sec_bss_nz_core __attribute__((section(".bss.core.nz")))
+
 /* LED pins */
 #define LED_BLINK_PIN   (17)
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/bd78c425/hw/bsp/nrf52pdk/nrf52pdk.ld
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52pdk/nrf52pdk.ld b/hw/bsp/nrf52pdk/nrf52pdk.ld
index bc2d33b..712fcfb 100755
--- a/hw/bsp/nrf52pdk/nrf52pdk.ld
+++ b/hw/bsp/nrf52pdk/nrf52pdk.ld
@@ -64,8 +64,8 @@ MEMORY
  *   __StackLimit
  *   __StackTop
  *   __stack
- *   __nzbss_start__
- *   __nzbss_end__
+ *   __bssnz_start__
+ *   __bssnz_end__
  */
 ENTRY(Reset_Handler)
 
@@ -159,6 +159,23 @@ SECTIONS
         __data_end__ = .;
     } > RAM
 
+    /* Non-zeroed BSS.  This section is similar to BSS, with the following two
+     * caveats:
+     *    1. It does not get zeroed at init-time.
+     *    2. You cannot use it as source memory for EasyDMA.
+     *
+     * This section exists because of a hardware defect; see errata 33 and 34
+     * in STM32F40x errata sheet.
+     */
+    .bssnz :
+    {
+        . = ALIGN(4);
+        __bssnz_start__ = .;
+        *(.bss.core.nz*)
+        . = ALIGN(4);
+        __bssnz_end__ = .;
+    } > CODE_RAM
+
     .bss :
     {
         . = ALIGN(4);
@@ -191,22 +208,5 @@ SECTIONS
 
     /* Check if data + heap + stack exceeds RAM limit */
     ASSERT(__HeapBase <= __HeapLimit, "region RAM overflowed with stack")
-
-    /* Non-zeroed BSS.  This section is similar to BSS, with the following two
-     * caveats:
-     *    1. It does not get zeroed at init-time.
-     *    2. You cannot use it as source memory for EasyDMA.
-     *
-     * This section exists because of a hardware defect; see errata 33 and 34
-     * in STM32F40x errata sheet.
-     */
-    .nzbss :
-    {
-        . = ALIGN(4);
-        __nzbss_start__ = .;
-        *(.nzbss*)
-        . = ALIGN(4);
-        __nzbss_end__ = .;
-    } > CODE_RAM
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/bd78c425/hw/bsp/olimex_stm32-e407_devboard/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/bsp.h b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/bsp.h
index fc4c56a..8a8aec5 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/include/bsp/bsp.h
+++ b/hw/bsp/olimex_stm32-e407_devboard/include/bsp/bsp.h
@@ -20,6 +20,11 @@
 extern "C" {
 #endif
 
+/* Define special stackos sections */
+#define sec_data_core   __attribute__((section(".data.core")))
+#define sec_bss_core    __attribute__((section(".bss.core")))
+#define sec_bss_nz_core __attribute__((section(".bss.core.nz")))
+
 /* LED pins */
 #define LED_BLINK_PIN   (45)
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/bd78c425/hw/bsp/stm32f3discovery/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/include/bsp/bsp.h b/hw/bsp/stm32f3discovery/include/bsp/bsp.h
index 84be983..cedd67d 100644
--- a/hw/bsp/stm32f3discovery/include/bsp/bsp.h
+++ b/hw/bsp/stm32f3discovery/include/bsp/bsp.h
@@ -20,6 +20,11 @@
 extern "C" {
 #endif
 
+/* Define special stackos sections */
+#define sec_data_core   __attribute__((section(".data.core")))
+#define sec_bss_core    __attribute__((section(".bss.core")))
+#define sec_bss_nz_core __attribute__((section(".bss.core.nz")))
+
 /* LED pins */
 #define LED_BLINK_PIN   (72)