summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-30 12:07:51 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-30 12:07:51 -0600
commit6a39bd6b7c563764be70ef7136d61008d3f836f0 (patch)
tree1b8dc9737f5251d4dd49b23ee96255406c038a8e
parent0ab489459de3a1b8fbc365aee424693fb6d8f7da (diff)
downloadpx4-nuttx-6a39bd6b7c563764be70ef7136d61008d3f836f0.tar.gz
px4-nuttx-6a39bd6b7c563764be70ef7136d61008d3f836f0.tar.bz2
px4-nuttx-6a39bd6b7c563764be70ef7136d61008d3f836f0.zip
The last bit of a previous commit was still in the editor
-rw-r--r--nuttx/configs/sama5d3x-ek/src/nor_main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/nor_main.c b/nuttx/configs/sama5d3x-ek/src/nor_main.c
index 51af1372d..d4062e4ed 100644
--- a/nuttx/configs/sama5d3x-ek/src/nor_main.c
+++ b/nuttx/configs/sama5d3x-ek/src/nor_main.c
@@ -129,24 +129,17 @@ int nor_main(int argc, char *argv)
(void)irqdisable();
- /* Set remap state 0. This is done late in the boot sequence. Any
- * exceptions taken before this point in time will be handled by the
- * ROM code, not by the NuttX interrupt since which was, up to this
- * point, uninitialized.
+ /* Set remap state 1.
*
* Boot state: ROM is seen at address 0x00000000
* Remap State 0: SRAM is seen at address 0x00000000 (through AHB slave
* interface) instead of ROM.
* Remap State 1: HEBI is seen at address 0x00000000 (through AHB slave
* interface) instead of ROM for external boot.
- *
- * Here we are assuming that vectors reside in the lower end of ISRAM.
- * Hmmm... this probably does not matter since we will map a page to
- * address 0x0000:0000 in that case anyway.
*/
putreg32(MATRIX_MRCR_RCB0, SAM_MATRIX_MRCR); /* Enable remap */
- putreg32(AXIMX_REMAP_REMAP0, SAM_AXIMX_REMAP); /* Remap SRAM */
+ putreg32(AXIMX_REMAP_REMAP1, SAM_AXIMX_REMAP); /* Remap SRAM */
/* Disable the caches and the MMU. Disabling the MMU should be safe here
* because there is a 1-to-1 identity mapping between the physical and