|
@@ -100,11 +100,11 @@ static __init void prom_init_console(void)
|
|
|
|
|
|
static __init void prom_init_cmdline(void)
|
|
static __init void prom_init_cmdline(void)
|
|
{
|
|
{
|
|
- static char buf[CL_SIZE] __initdata;
|
|
|
|
|
|
+ static char buf[COMMAND_LINE_SIZE] __initdata;
|
|
|
|
|
|
/* Get the kernel command line from CFE */
|
|
/* Get the kernel command line from CFE */
|
|
- if (cfe_getenv("LINUX_CMDLINE", buf, CL_SIZE) >= 0) {
|
|
|
|
- buf[CL_SIZE-1] = 0;
|
|
|
|
|
|
+ if (cfe_getenv("LINUX_CMDLINE", buf, COMMAND_LINE_SIZE) >= 0) {
|
|
|
|
+ buf[COMMAND_LINE_SIZE - 1] = 0;
|
|
strcpy(arcs_cmdline, buf);
|
|
strcpy(arcs_cmdline, buf);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -112,13 +112,13 @@ static __init void prom_init_cmdline(void)
|
|
* as CFE is not available anymore later in the boot process. */
|
|
* as CFE is not available anymore later in the boot process. */
|
|
if ((strstr(arcs_cmdline, "console=")) == NULL) {
|
|
if ((strstr(arcs_cmdline, "console=")) == NULL) {
|
|
/* Try to read the default serial port used by CFE */
|
|
/* Try to read the default serial port used by CFE */
|
|
- if ((cfe_getenv("BOOT_CONSOLE", buf, CL_SIZE) < 0)
|
|
|
|
|
|
+ if ((cfe_getenv("BOOT_CONSOLE", buf, COMMAND_LINE_SIZE) < 0)
|
|
|| (strncmp("uart", buf, 4)))
|
|
|| (strncmp("uart", buf, 4)))
|
|
/* Default to uart0 */
|
|
/* Default to uart0 */
|
|
strcpy(buf, "uart0");
|
|
strcpy(buf, "uart0");
|
|
|
|
|
|
/* Compute the new command line */
|
|
/* Compute the new command line */
|
|
- snprintf(arcs_cmdline, CL_SIZE, "%s console=ttyS%c,115200",
|
|
|
|
|
|
+ snprintf(arcs_cmdline, COMMAND_LINE_SIZE, "%s console=ttyS%c,115200",
|
|
arcs_cmdline, buf[4]);
|
|
arcs_cmdline, buf[4]);
|
|
}
|
|
}
|
|
}
|
|
}
|