summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3783782)
raw | patch | inline | side by side (parent: 3783782)
author | Gerald Van Baren <vanbaren@cideas.com> | |
Fri, 20 Apr 2007 03:14:39 +0000 (23:14 -0400) | ||
committer | Gerald Van Baren <vanbaren@cideas.com> | |
Fri, 20 Apr 2007 03:14:39 +0000 (23:14 -0400) |
What was suppose to be a stack variable was declared as a pointer,
overwriting random memory.
Also moved the libfdt.a requirement into the main Makefile. That is
The U-Boot Way.
overwriting random memory.
Also moved the libfdt.a requirement into the main Makefile. That is
The U-Boot Way.
Makefile | patch | blob | history | |
board/mpc8360emds/config.mk | patch | blob | history | |
common/fdt_support.c | patch | blob | history |
diff --git a/Makefile b/Makefile
index 9a27bc2f86432d57479dfb12763d96e6c9f589d2..94cda54c731f19e08bb04c207ca7beb8d85e8020 100644 (file)
--- a/Makefile
+++ b/Makefile
LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
LIBS += common/libcommon.a
+LIBS += libfdt/libfdt.a
LIBS += $(BOARDLIBS)
LIBS := $(addprefix $(obj),$(LIBS))
index 5801a5f178448952cd5373b8e2865f042aa7e785..9ace8860cfdb742f712ab2b7db87aa3ea7fb367b 100644 (file)
#
TEXT_BASE = 0xFE000000
-
-#
-# Additional board-specific libraries
-#
-BOARDLIBS = libfdt/libfdt.a
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 91b729f37a0c77eff313eff8158926f88dfa61d4..69099c4275ccb925cce7b7c69afc5ab4f76cfe6f 100644 (file)
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
}
if (initrd_start && initrd_end) {
- struct fdt_reserve_entry *re;
+ struct fdt_reserve_entry re;
int used;
int total;
int j;
*/
for (j = 0; j < used; j++) {
err = fdt_get_reservemap(fdt, j, &re);
- if (re->address == initrd_start) {
+ if (re.address == initrd_start) {
break;
}
}