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/19 07:15:59 UTC

[GitHub] [incubator-nuttx] Ouss4 commented on a change in pull request #3095: ESP32: Allow a BSS section to reside in external memory

Ouss4 commented on a change in pull request #3095:
URL: https://github.com/apache/incubator-nuttx/pull/3095#discussion_r597451568



##########
File path: arch/xtensa/src/common/xtensa_attr.h
##########
@@ -63,4 +69,10 @@
 
 #define RTC_RODATA_ATTR __attribute__((section(".rtc.rodata")))
 
+/* Forces bss variable into external memory. */

Review comment:
       The data that usually gets in SPIRAM are large bss data. Yes, the purpose is to save some internal memory.
   
   I made EXT_RAM_ATTR a no-op when CONFIG_XTENSA_EXTMEM_BSS is not enabled and changed the "force" to "allow", although, I find that when we are using the attribute we are actually forcing the variable to reside in that section.




-- 
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