Skip to content
Snippets Groups Projects
Commit 36cd52a0 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

Blackfin: convert CMD_LINE_ADDR to CONFIG_LINUX_CMDLINE_{ADDR,SIZE}

parent c8054bc1
No related branches found
No related tags found
No related merge requests found
...@@ -65,8 +65,11 @@ ...@@ -65,8 +65,11 @@
#endif #endif
/* Using L1 scratch pad makes sense for everyone by default. */ /* Using L1 scratch pad makes sense for everyone by default. */
#ifndef CMD_LINE_ADDR #ifndef CONFIG_LINUX_CMDLINE_ADDR
# define CMD_LINE_ADDR L1_SRAM_SCRATCH # define CONFIG_LINUX_CMDLINE_ADDR L1_SRAM_SCRATCH
#endif
#ifndef CONFIG_LINUX_CMDLINE_SIZE
# define CONFIG_LINUX_CMDLINE_SIZE L1_SRAM_SCRATCH_SIZE
#endif #endif
#endif #endif
...@@ -20,14 +20,14 @@ extern void swap_to(int device_id); ...@@ -20,14 +20,14 @@ extern void swap_to(int device_id);
static char *make_command_line(void) static char *make_command_line(void)
{ {
char *dest = (char *)CMD_LINE_ADDR; char *dest = (char *)CONFIG_LINUX_CMDLINE_ADDR;
char *bootargs = getenv("bootargs"); char *bootargs = getenv("bootargs");
if (bootargs == NULL) if (bootargs == NULL)
return NULL; return NULL;
strncpy(dest, bootargs, 0x1000); strncpy(dest, bootargs, CONFIG_LINUX_CMDLINE_SIZE);
dest[0xfff] = 0; dest[CONFIG_LINUX_CMDLINE_SIZE - 1] = 0;
return dest; return dest;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment