diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-08-13 10:16:11 +0200 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-13 10:16:11 +0200 |
commit | 07aa7be5708afb3d9afa68f6f853c98e51bc64b3 (patch) | |
tree | 808fe87c382fb0a1b9432c75989da81f7f9efdd1 /arch/blackfin/kernel/setup.c | |
parent | Blackfin arch: unify the duplicated portions of __start and split mach-specif... (diff) | |
download | linux-07aa7be5708afb3d9afa68f6f853c98e51bc64b3.tar.xz linux-07aa7be5708afb3d9afa68f6f853c98e51bc64b3.zip |
Blackfin arch: convert L2 defines to be the same as the L1 defines
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel/setup.c')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index 15967e7578cd..936c06d820de 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c @@ -131,14 +131,14 @@ void __init bf53x_relocate_l1_mem(void) dma_memcpy(_sdata_b_l1, _l1_lma_start + l1_code_length + l1_data_a_length, l1_data_b_length); -#ifdef L2_LENGTH - l2_length = _ebss_l2 - _stext_l2; - if (l2_length > L2_LENGTH) - panic("L2 SRAM Overflow\n"); + if (L2_LENGTH != 0) { + l2_length = _ebss_l2 - _stext_l2; + if (l2_length > L2_LENGTH) + panic("L2 SRAM Overflow\n"); - /* Copy _stext_l2 to _edata_l2 to L2 SRAM */ - dma_memcpy(_stext_l2, _l2_lma_start, l2_length); -#endif + /* Copy _stext_l2 to _edata_l2 to L2 SRAM */ + dma_memcpy(_stext_l2, _l2_lma_start, l2_length); + } } /* add_memory_region to memmap */ |