You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/03/08 17:19:52 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #3003: ESP32: Re-organise the different heap regions

gustavonihei commented on a change in pull request #3003:
URL: https://github.com/apache/incubator-nuttx/pull/3003#discussion_r589604251



##########
File path: arch/xtensa/src/esp32/esp32_allocateheap.c
##########
@@ -96,17 +96,41 @@ void xtensa_add_region(void)
 {
   void  *start;
   size_t size;
+  int availregions;
+  int nregions = CONFIG_MM_REGIONS - 1;
+
+#ifdef CONFIG_SMP
+  availregions = 2;
+#  ifdef CONFIG_BOARD_LATE_INITIALIZE
+  availregions++;
+#  else
+  minfo("A ~3KB heap region can be added to the heap by enabling"
+        " CONFIG_BOARD_LATE_INITLIAZE\n");

Review comment:
       ```suggestion
           " CONFIG_BOARD_LATE_INITIALIZE\n");
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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