diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-04-29 12:53:05 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-27 15:27:29 +0200 |
commit | 781eb9a1e4af4bd34c138e6126ec5cc6dd4b5440 (patch) | |
tree | c1f48ea5a6ac83fb8372839e45c4c1c7018185e4 /cpu | |
parent | cdd42c0c7a5205fc380912d83229069a71ea3abf (diff) |
avr32: Get rid of the .flashprog section
The .flashprog section was only needed back when we were running
directly from flash, and it's even more useless on NGW100 since it
uses the CFI flash driver which never used this workaround in the
first place.
Remove it on STK1000 as well, and get rid of all the associated code and
annotations.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/at32ap/cpu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cpu/at32ap/cpu.c b/cpu/at32ap/cpu.c index 4542e67973..a7a66cc1a0 100644 --- a/cpu/at32ap/cpu.c +++ b/cpu/at32ap/cpu.c @@ -84,7 +84,6 @@ static void pm_init(void) int cpu_init(void) { extern void _evba(void); - char *p; /* in case of soft resets, disable watchdog */ sm_writel(WDT_CTRL, SM_BF(KEY, 0x55)); @@ -104,11 +103,6 @@ int cpu_init(void) sysreg_write(EVBA, (unsigned long)&_evba); asm volatile("csrf %0" : : "i"(SYSREG_EM_OFFSET)); - /* Lock everything that mess with the flash in the icache */ - for (p = __flashprog_start; p <= (__flashprog_end + CFG_ICACHE_LINESZ); - p += CFG_ICACHE_LINESZ) - asm volatile("cache %0, 0x02" : "=m"(*p) :: "memory"); - return 0; } |