Add memorymap
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2972 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
61e3fda96c
commit
c97a4497f8
@ -46,6 +46,22 @@
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Physical memory map */
|
||||
|
||||
#define AVR32_ONCHIP_FLASH_BASE 0x80000000 /* 512Kb Flash Array */
|
||||
# define AVR32_APPL_BASE 0x80002000 /* 8Kb offset to application w/bootloader */
|
||||
#define AVR32_USER_FLASH_BASE 0x80800000 /* Flash User Page */
|
||||
# define AVR32_BTLDR_CONFIG 0x808001fc /* Bootloader configuration word */
|
||||
|
||||
/* Memory map for systems without an MMU */
|
||||
|
||||
#define AVR32_P1_BASE 0x80000000 /* 512MB non-translated space, cacheable */
|
||||
#define AVR32_P2_BASE 0xa0000000 /* 512MB non-translated space, non-cacheable */
|
||||
#define AVR32_P3_BASE 0xc0000000 /* 512MB translated space, cacheable */
|
||||
#define AVR32_P4_BASE 0xe0000000 /* 512MB system space, non-cacheable */
|
||||
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
@ -52,7 +52,7 @@
|
||||
#ifdef CONFIG_BOOT_RUNFROMFLASH
|
||||
.global _sdata /* Start of .data section in RAM */
|
||||
.global _edata /* End of .data section in RAM */
|
||||
.global _erdonly /* Start of .data section in FLASH */
|
||||
.global _eronly /* Start of .data section in FLASH */
|
||||
#endif
|
||||
.global up_lowinit /* Perform low level initialization */
|
||||
.global up_boardinit /* Low-level board initialization */
|
||||
@ -127,7 +127,7 @@ __start:
|
||||
|
||||
lda.w r0, _sdata /* r0=Start of .data section in RAM */
|
||||
lda.w r1, _edata /* r1=End of .data section in RAM */
|
||||
lda.w r2, _erdonly /* r2=Start of .data in FLASH */
|
||||
lda.w r2, _eronly /* r2=Start of .data in FLASH */
|
||||
rjmp 4f /* Start at the bottom of the loop */
|
||||
3:
|
||||
ld.d r4, r2++ /* Fetch the next data value */
|
||||
|
Loading…
Reference in New Issue
Block a user