[OpenBIOS] advice/help on OF device nodes?

Tarl Neustaedter tarl-b2 at tarl.net
Sat Feb 6 23:12:19 CET 2016


On 2016-Feb-6 17:02 , Alyssa Milburn wrote:
> +
> +        chosen = find_dev("/chosen");
> +        push_str(buf);
> +        fword("open-dev");
> +        set_int_property(chosen, "interrupt-controller", POP());

/chosen won't have an "open" method, so the open-dev will fail. You
probably don't need the open-dev anyway, you should be able to call
set_int_property with the chosen phandle without doing an open on it.
That is, delete the 3rd line of the above, it probably works.




More information about the OpenBIOS mailing list