mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2472 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -59,29 +59,33 @@
|
|||||||
* 1. We execute in place in FLASH (CONFIG_BOOT_RUNFROMFLASH=y). In this case
|
* 1. We execute in place in FLASH (CONFIG_BOOT_RUNFROMFLASH=y). In this case
|
||||||
* the boot logic must:
|
* the boot logic must:
|
||||||
*
|
*
|
||||||
* - Configure SDRAM and,
|
* - Configure SDRAM,
|
||||||
* - Initialize the .data section in RAM.
|
* - Initialize the .data section in RAM, and
|
||||||
|
* - Clear .bss section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_BOOT_RUNFROMFLASH
|
#ifdef CONFIG_BOOT_RUNFROMFLASH
|
||||||
|
# error "Configuration not implemented"
|
||||||
# define CONFIGURE_SDRAM
|
# define CONFIGURE_SDRAM
|
||||||
|
|
||||||
/* 2. We boot in FLASH but copy ourselves to DRAM from better performance.
|
/* 2. We boot in FLASH but copy ourselves to DRAM from better performance.
|
||||||
* (CONFIG_BOOT_RUNFROMFLASH=n && CONFIG_BOOT_COPYTORAM=y). In this case
|
* (CONFIG_BOOT_RUNFROMFLASH=n && CONFIG_BOOT_COPYTORAM=y). In this case
|
||||||
* the boot logic must:
|
* the boot logic must:
|
||||||
*
|
*
|
||||||
* - Configure SDRAM and,
|
* - Configure SDRAM,
|
||||||
* - Copy ourself to DRAM (after mapping it)
|
* - Copy ourself to DRAM (after mapping it), and
|
||||||
|
* - Clear .bss section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#elif defined(CONFIG_BOOT_COPYTORAM)
|
#elif defined(CONFIG_BOOT_COPYTORAM)
|
||||||
|
# error "configuration not implemented
|
||||||
# define CONFIG_SDRAM
|
# define CONFIG_SDRAM
|
||||||
|
|
||||||
/* 3. There is bootloader that copies us to DRAM (but probably not to the beginning)
|
/* 3. There is bootloader that copies us to DRAM (but probably not to the beginning)
|
||||||
* (CONFIG_BOOT_RUNFROMFLASH=n && CONFIG_BOOT_COPYTORAM=n). In this case the
|
* (CONFIG_BOOT_RUNFROMFLASH=n && CONFIG_BOOT_COPYTORAM=n). In this case the
|
||||||
* boot logic must:
|
* boot logic must:
|
||||||
*
|
*
|
||||||
* - Nothing special.
|
* - Clear .bss section
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user