> >> > @@ -521,12 +539,12 @@ int __init early_init_dt_scan_chosen(unsigned long 
> >> > node, const char *uname,
> >> >
> >> >        early_init_dt_check_for_initrd(node);
> >> >
> >> > +#ifdef CONFIG_CMDLINE
> >> >        /* Retreive command line */
> >> > -       p = of_get_flat_dt_prop(node, "bootargs", &l);
> >> > +       p = of_get_flat_dt_prop(node, "bootargs", &l, 
> >> > initial_boot_params);
> >> >        if (p != NULL && l > 0)
> >> >                strlcpy(cmd_line, p, min((int)l, COMMAND_LINE_SIZE));
> >> >
> >> > -#ifdef CONFIG_CMDLINE
> >>
> >> Why is this being changed?
> >
> > Because it requires a cmd_line global, which all architectures (especially 
> > x86) don't seem to have)
> > Probably if the early stuff get's factored out, then this problem goes away.
> 
> I'm considering changing this so that cmd_line is set with an
> arch-specific callback.

I don't think I ever saw a patch for this.  Have you done more than think about 
this?

Steve


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.


_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to