lib/powerpc/setup: comment init dependencies
cpu_init must be called before mem_init because cpu_init determines
the cache-line sizes. Currently io_init has no dependency on
mem_init, but io_init should be allowed to use heap allocation,
and someday it may, so we proactively comment it.
Cc: Laurent Vivier <lvivier@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
diff --git a/lib/powerpc/setup.c b/lib/powerpc/setup.c
index 9153f7b..0e77623 100644
--- a/lib/powerpc/setup.c
+++ b/lib/powerpc/setup.c
@@ -168,7 +168,11 @@
assert(ret == 0);
cpu_init();
+
+ /* cpu_init must be called before mem_init */
mem_init(PAGE_ALIGN((unsigned long)&stacktop + fdt_size));
+
+ /* mem_init must be called before io_init */
io_init();
ret = dt_get_bootargs(&bootargs);