From c97a4497f8d3f381e3e8035db9a707013825e6e8 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 7 Oct 2010 01:58:16 +0000 Subject: [PATCH] Add memorymap git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2972 42af7a65-404d-4744-a932-0658087f49c3 --- arch/avr/src/at91uc3/at91uc3_memorymap.h | 16 ++++++++++++++++ arch/avr/src/avr32/up_nommuhead.S | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/avr/src/at91uc3/at91uc3_memorymap.h b/arch/avr/src/at91uc3/at91uc3_memorymap.h index 71a48de8b8..dc5997231e 100755 --- a/arch/avr/src/at91uc3/at91uc3_memorymap.h +++ b/arch/avr/src/at91uc3/at91uc3_memorymap.h @@ -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 ************************************************************************************/ diff --git a/arch/avr/src/avr32/up_nommuhead.S b/arch/avr/src/avr32/up_nommuhead.S index 7e2888456f..6e0edb2200 100644 --- a/arch/avr/src/avr32/up_nommuhead.S +++ b/arch/avr/src/avr32/up_nommuhead.S @@ -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 */