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 2020/05/18 04:14:03 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 edited a comment on issue #1020: [RFC] Using devicetree (DTS) to improve board support

xiaoxiang781216 edited a comment on issue #1020:
URL: https://github.com/apache/incubator-nuttx/issues/1020#issuecomment-629935359


   This method can't be used for:
   1.The constant on the flash or
   2.The code execute XIP from flash
   But I think the flash is much cheap than RAM.
   The most concern is the RAM usage(e.g. in no XIP case), we can reuse RAM as heap after:
   1.The code in RAM is used only for initialization 
   2.The data is used only for initialization
   The implementation is very simple:
   1.All data used for init put into .init_data section
   2.All funtion used for init put into .init_func section
   3.Ensure .init_data/.init_func immediately follow the heap section
   4.Call mm_extend just after the initialization finish


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