From d406de6c4d47e3d25cbcf188084986de1bbfd5e1 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 17 Jan 2010 19:24:32 +0100 Subject: gcc: disable remaping autodetection --- AT91SAM7S256/SAM7S256/Include/Cstartup.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AT91SAM7S256/SAM7S256/Include') 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 -- cgit v1.2.3