Hi Grant,

> +     /* Scan memory nodes and rebuild LMBs */
> +     lmb_init();
> +     of_scan_flat_dt(early_init_dt_scan_root, NULL);
> +     of_scan_flat_dt(early_init_dt_scan_memory, NULL);
> +
> +     /* Save command line for /proc/cmdline and then parse parameters */
> +     strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE);
> +     parse_early_param();
> +
> +     /* This is in an arbitrary spot, but it is temporary.  After all
> +      * the common code is merged, the structure of the early init
> +      * code will be reevaluated and refactored */
> +     early_init_devtree_arch();
> +
> +     lmb_analyze();
> +     lmb_dump_all();

So we're assuming that the arch has lmb support, or should we make this 
conditional on CONFIG_HAVE_LMB?

Looks like ARM has its own lmb implementation (struct membank), so for the 
former case, I'd need to convert that to use lmb instead (which may not be a 
bad thing overall...)

Cheers,


Jeremy 
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to