Skip to content

Commit

Permalink
Blackfin arch: make sure we initialize our L1 Data B section properly…
Browse files Browse the repository at this point in the history
… based on the linked kernel

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jun 14, 2007
1 parent 581d62a commit 43a3188
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/blackfin/mm/blackfin_sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ void __init l1_data_sram_init(void)
#endif
#if L1_DATA_B_LENGTH != 0
memset(&l1_data_B_sram, 0x00, sizeof(l1_data_B_sram));
l1_data_B_sram[0].paddr = (void*)L1_DATA_B_START;
l1_data_B_sram[0].size = L1_DATA_B_LENGTH;
l1_data_B_sram[0].paddr = (void *)L1_DATA_B_START +
(_ebss_b_l1 - _sdata_b_l1);
l1_data_B_sram[0].size = L1_DATA_B_LENGTH - (_ebss_b_l1 - _sdata_b_l1);
l1_data_B_sram[0].flag = SRAM_SLT_FREE;

printk(KERN_INFO "Blackfin Data B SRAM: %d KB (%d KB free)\n",
Expand Down

0 comments on commit 43a3188

Please sign in to comment.