diff options
author | Barry Song <barry.song@analog.com> | 2010-06-29 08:55:29 +0000 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-03-21 11:00:06 +0800 |
commit | edd8a97e6e89ee2edc86e21db6253a73741f3c72 (patch) | |
tree | 24f73aca78244aecb7931e44d32fa04be2e7b33c /arch/blackfin | |
parent | f7899f7c1fff3c68f0c896e38714d489845cef57 (diff) | |
download | blackbird-obmc-linux-edd8a97e6e89ee2edc86e21db6253a73741f3c72.tar.gz blackbird-obmc-linux-edd8a97e6e89ee2edc86e21db6253a73741f3c72.zip |
blackfin: restore L1 base address and length
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>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/mmu_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/mmu_context.h b/arch/blackfin/include/asm/mmu_context.h index 3828c70e7a2e..15b16d3e8de8 100644 --- a/arch/blackfin/include/asm/mmu_context.h +++ b/arch/blackfin/include/asm/mmu_context.h @@ -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 |