Yet another rething of the SAMA5 memory mapping definitions

This commit is contained in:
Gregory Nutt 2015-09-08 11:50:30 -06:00
parent e6aba39805
commit e7c149e545
3 changed files with 42 additions and 3 deletions

View File

@ -731,7 +731,20 @@
* the page table at boot time.
*/
# ifndef CONFIG_SAMA5_BOOT_ISRAM
# if defined(CONFIG_BOOT_RUNFROMFLASH)
/* If we are running from FLASH, than the primary memory region is
* given by NUTTX_RAM_PADDR.
*/
# if NUTTX_RAM_PADDR != SAM_ISRAM_PSECTION
# define ARMV7A_PGTABLE_MAPPING 1
# endif
/* Otherwise, we are running from RAM and that RAM is also the primary
* RAM.
*/
# elif !defined(CONFIG_SAMA5_BOOT_ISRAM)
# define ARMV7A_PGTABLE_MAPPING 1
# endif

View File

@ -656,7 +656,20 @@
* the page table at boot time.
*/
# ifndef CONFIG_SAMA5_BOOT_ISRAM
# if defined(CONFIG_BOOT_RUNFROMFLASH)
/* If we are running from FLASH, than the primary memory region is
* given by NUTTX_RAM_PADDR.
*/
# if NUTTX_RAM_PADDR != SAM_ISRAM_PSECTION
# define ARMV7A_PGTABLE_MAPPING 1
# endif
/* Otherwise, we are running from RAM and that RAM is also the primary
* RAM.
*/
# elif !defined(CONFIG_SAMA5_BOOT_ISRAM)
# define ARMV7A_PGTABLE_MAPPING 1
# endif

View File

@ -656,7 +656,20 @@
* the page table at boot time.
*/
# ifndef CONFIG_SAMA5_BOOT_ISRAM
# if defined(CONFIG_BOOT_RUNFROMFLASH)
/* If we are running from FLASH, than the primary memory region is
* given by NUTTX_RAM_PADDR.
*/
# if NUTTX_RAM_PADDR != SAM_ISRAM_PSECTION
# define ARMV7A_PGTABLE_MAPPING 1
# endif
/* Otherwise, we are running from RAM and that RAM is also the primary
* RAM.
*/
# elif !defined(CONFIG_SAMA5_BOOT_ISRAM)
# define ARMV7A_PGTABLE_MAPPING 1
# endif