Skip to content

Commit

Permalink
blackfin: restore L1 base address and length
Browse files Browse the repository at this point in the history
Restore L1 base address and length to 0 after free else the value will be
wrong.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
Barry Song authored and Bob Liu committed Mar 21, 2012
1 parent f7899f7 commit edd8a97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/blackfin/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ extern void *l1sram_alloc_max(void*);
static inline void free_l1stack(void)
{
nr_l1stack_tasks--;
if (nr_l1stack_tasks == 0)
if (nr_l1stack_tasks == 0) {
l1sram_free(l1_stack_base);
l1_stack_base = NULL;
l1_stack_len = 0;
}
}

static inline unsigned long
Expand Down

0 comments on commit edd8a97

Please sign in to comment.