Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92317
b: refs/heads/master
c: b85b82d
h: refs/heads/master
i:
  92315: 7aa13b4
v: v3
  • Loading branch information
Sonic Zhang authored and Bryan Wu committed Apr 23, 2008
1 parent f63e753 commit 0eca5c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 253bcf4f9b6dde1cfa169bc29655cf177d6a903b
refs/heads/master: b85b82d980526d683dc3b39f2ac1f447fa84a105
6 changes: 3 additions & 3 deletions trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void __init bf53x_relocate_l1_mem(void)

l1_code_length = _etext_l1 - _stext_l1;
if (l1_code_length > L1_CODE_LENGTH)
l1_code_length = L1_CODE_LENGTH;
panic("L1 Instruction SRAM Overflow\n");
/* cannot complain as printk is not available as yet.
* But we can continue booting and complain later!
*/
Expand All @@ -117,14 +117,14 @@ void __init bf53x_relocate_l1_mem(void)

l1_data_a_length = _ebss_l1 - _sdata_l1;
if (l1_data_a_length > L1_DATA_A_LENGTH)
l1_data_a_length = L1_DATA_A_LENGTH;
panic("L1 Data SRAM Bank A Overflow\n");

/* Copy _sdata_l1 to _ebss_l1 to L1 data bank A SRAM */
dma_memcpy(_sdata_l1, _l1_lma_start + l1_code_length, l1_data_a_length);

l1_data_b_length = _ebss_b_l1 - _sdata_b_l1;
if (l1_data_b_length > L1_DATA_B_LENGTH)
l1_data_b_length = L1_DATA_B_LENGTH;
panic("L1 Data SRAM Bank B Overflow\n");

/* Copy _sdata_b_l1 to _ebss_b_l1 to L1 data bank B SRAM */
dma_memcpy(_sdata_b_l1, _l1_lma_start + l1_code_length +
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/blackfin/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ SECTIONS
. = ALIGN(32);
*(.data.cacheline_aligned)

#if !L1_DATA_A_LENGTH
. = ALIGN(32);
*(.data_l1.cacheline_aligned)
#endif

DATA_DATA
*(.data.*)
CONSTRUCTORS
Expand Down

0 comments on commit 0eca5c1

Please sign in to comment.