提交 edd8a97e 编写于 作者: B Barry Song 提交者: Bob Liu

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: NBarry Song <barry.song@analog.com>
Signed-off-by: NBob Liu <lliubbo@gmail.com>
上级 f7899f7c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册