aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2010-01-17 19:24:32 +0100
committerNicolas Schodet2010-08-20 00:18:22 +0200
commitd406de6c4d47e3d25cbcf188084986de1bbfd5e1 (patch)
tree035f89631ad64739c645558871fe675ad0dde1d7
parentb63ebef82e4af2205f13fbab00aaa1ef8bfddd02 (diff)
gcc: disable remaping autodetection
-rw-r--r--AT91SAM7S256/SAM7S256/Include/Cstartup.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/AT91SAM7S256/SAM7S256/Include/Cstartup.S b/AT91SAM7S256/SAM7S256/Include/Cstartup.S
index 4822e84..fd03c19 100644
--- a/AT91SAM7S256/SAM7S256/Include/Cstartup.S
+++ b/AT91SAM7S256/SAM7S256/Include/Cstartup.S
@@ -47,6 +47,8 @@
.set VECTREMAPPED, 0
#endif
+.set VECTREMAPPED_AUTODETECT, 0
+
.if (RAM_MODE)
.print "RAM_MODE enabled"
@@ -180,6 +182,7 @@ InitReset:
.equ MC_RCR, 0x00 /* MC_RCR Offset */
+.if (VECTREMAPPED_AUTODETECT)
/* store first word in RAM into r4 */
ldr r0,=__FIRST_IN_RAM
ldr r4,[r0]
@@ -201,6 +204,7 @@ InitReset:
/* compare */
cmp r3, r2
bne already_remapped
+.endif
/* if both values have been equal the change of the
RAM-value had no effect on the value at 0x00000000