Commit d35482d5 authored by Andrew Jones's avatar Andrew Jones
Browse files

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's avatarAndrew Jones <drjones@redhat.com>
parent 4f58b399
......@@ -168,7 +168,11 @@ void setup(const void *fdt)
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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment