aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/kernel/setup.c')
-rw-r--r--arch/blackfin/kernel/setup.c14
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)
131 dma_memcpy(_sdata_b_l1, _l1_lma_start + l1_code_length + 131 dma_memcpy(_sdata_b_l1, _l1_lma_start + l1_code_length +
132 l1_data_a_length, l1_data_b_length); 132 l1_data_a_length, l1_data_b_length);
133 133
134#ifdef L2_LENGTH 134 if (L2_LENGTH != 0) {
135 l2_length = _ebss_l2 - _stext_l2; 135 l2_length = _ebss_l2 - _stext_l2;
136 if (l2_length > L2_LENGTH) 136 if (l2_length > L2_LENGTH)
137 panic("L2 SRAM Overflow\n"); 137 panic("L2 SRAM Overflow\n");
138 138
139 /* Copy _stext_l2 to _edata_l2 to L2 SRAM */ 139 /* Copy _stext_l2 to _edata_l2 to L2 SRAM */
140 dma_memcpy(_stext_l2, _l2_lma_start, l2_length); 140 dma_memcpy(_stext_l2, _l2_lma_start, l2_length);
141#endif 141 }
142} 142}
143 143
144/* add_memory_region to memmap */ 144/* add_memory_region to memmap */