projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7899f7
)
blackfin: restore L1 base address and length
author
Barry Song
<barry.song@analog.com>
Tue, 29 Jun 2010 08:55:29 +0000
(08:55 +0000)
committer
Bob Liu
<lliubbo@gmail.com>
Wed, 21 Mar 2012 03:00:06 +0000
(11:00 +0800)
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>
arch/blackfin/include/asm/mmu_context.h
patch
|
blob
|
history
diff --git
a/arch/blackfin/include/asm/mmu_context.h
b/arch/blackfin/include/asm/mmu_context.h
index 3828c70e7a2ecb2e7ef0651a102de174f8c3ca49..15b16d3e8de8aee1aa906c62529df358ae074288 100644
(file)
--- 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