|
@@ -139,18 +139,18 @@ static struct addr_range prep_initrd(struct addr_range vmlinux, void *chosen,
|
|
* edit the command line passed to vmlinux (by setting /chosen/bootargs).
|
|
* edit the command line passed to vmlinux (by setting /chosen/bootargs).
|
|
* The buffer is put in it's own section so that tools may locate it easier.
|
|
* The buffer is put in it's own section so that tools may locate it easier.
|
|
*/
|
|
*/
|
|
-static char cmdline[COMMAND_LINE_SIZE]
|
|
|
|
|
|
+static char cmdline[BOOT_COMMAND_LINE_SIZE]
|
|
__attribute__((__section__("__builtin_cmdline")));
|
|
__attribute__((__section__("__builtin_cmdline")));
|
|
|
|
|
|
static void prep_cmdline(void *chosen)
|
|
static void prep_cmdline(void *chosen)
|
|
{
|
|
{
|
|
if (cmdline[0] == '\0')
|
|
if (cmdline[0] == '\0')
|
|
- getprop(chosen, "bootargs", cmdline, COMMAND_LINE_SIZE-1);
|
|
|
|
|
|
+ getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1);
|
|
|
|
|
|
printf("\n\rLinux/PowerPC load: %s", cmdline);
|
|
printf("\n\rLinux/PowerPC load: %s", cmdline);
|
|
/* If possible, edit the command line */
|
|
/* If possible, edit the command line */
|
|
if (console_ops.edit_cmdline)
|
|
if (console_ops.edit_cmdline)
|
|
- console_ops.edit_cmdline(cmdline, COMMAND_LINE_SIZE);
|
|
|
|
|
|
+ console_ops.edit_cmdline(cmdline, BOOT_COMMAND_LINE_SIZE);
|
|
printf("\n\r");
|
|
printf("\n\r");
|
|
|
|
|
|
/* Put the command line back into the devtree for the kernel */
|
|
/* Put the command line back into the devtree for the kernel */
|
|
@@ -174,7 +174,7 @@ void start(void)
|
|
* built-in command line wasn't set by an external tool */
|
|
* built-in command line wasn't set by an external tool */
|
|
if ((loader_info.cmdline_len > 0) && (cmdline[0] == '\0'))
|
|
if ((loader_info.cmdline_len > 0) && (cmdline[0] == '\0'))
|
|
memmove(cmdline, loader_info.cmdline,
|
|
memmove(cmdline, loader_info.cmdline,
|
|
- min(loader_info.cmdline_len, COMMAND_LINE_SIZE-1));
|
|
|
|
|
|
+ min(loader_info.cmdline_len, BOOT_COMMAND_LINE_SIZE-1));
|
|
|
|
|
|
if (console_ops.open && (console_ops.open() < 0))
|
|
if (console_ops.open && (console_ops.open() < 0))
|
|
exit();
|
|
exit();
|