projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2acd4a1
)
rk: mem_reserve: fix reserved_base_end when meminfo split by kernel
author
黄涛
<huangtao@rock-chips.com>
Thu, 1 Aug 2013 11:35:51 +0000
(19:35 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Thu, 1 Aug 2013 11:36:28 +0000
(19:36 +0800)
arch/arm/plat-rk/mem_reserve.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-rk/mem_reserve.c
b/arch/arm/plat-rk/mem_reserve.c
index 4806d7954e654bcc1e60eb23475555d6c5e921a3..3e8b50e89d009dae7e3bd9aeaabd8a28f8af0bf4 100644
(file)
--- a/
arch/arm/plat-rk/mem_reserve.c
+++ b/
arch/arm/plat-rk/mem_reserve.c
@@
-14,7
+14,7
@@
phys_addr_t __init board_mem_reserve_add(char *name, size_t size)
size_t align_size = ALIGN_SZ(size, SZ_1M);
if(reserved_base_end == 0)
- reserved_base_end
= meminfo.bank[0].start + meminfo.bank[0
].size;
+ reserved_base_end
= meminfo.bank[meminfo.nr_banks - 1].start + meminfo.bank[meminfo.nr_banks - 1
].size;
reserved_size += align_size;
base = reserved_base_end - reserved_size;