Lines Matching refs:chosen
93 static struct addr_range prep_initrd(struct addr_range vmlinux, void *chosen,
135 setprop_val(chosen, "linux,initrd-start", (u32)(initrd_addr));
136 setprop_val(chosen, "linux,initrd-end", (u32)(initrd_addr+initrd_size));
142 * edit the command line passed to vmlinux (by setting /chosen/bootargs).
148 static void prep_cmdline(void *chosen)
151 getprop(chosen, "bootargs", cmdline, COMMAND_LINE_SIZE-1);
160 setprop_str(chosen, "bootargs", cmdline);
173 void *chosen;
190 /* Ensure that the device tree has a /chosen node */
191 chosen = finddevice("/chosen");
192 if (!chosen)
193 chosen = create_node(NULL, "chosen");
196 initrd = prep_initrd(vmlinux, chosen,
198 prep_cmdline(chosen);