mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
Blackfin: convert CMD_LINE_ADDR to CONFIG_LINUX_CMDLINE_{ADDR,SIZE}
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
c8054bc12e
commit
36cd52a007
@ -65,8 +65,11 @@
|
||||
#endif
|
||||
|
||||
/* Using L1 scratch pad makes sense for everyone by default. */
|
||||
#ifndef CMD_LINE_ADDR
|
||||
# define CMD_LINE_ADDR L1_SRAM_SCRATCH
|
||||
#ifndef CONFIG_LINUX_CMDLINE_ADDR
|
||||
# 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
|
||||
|
@ -20,14 +20,14 @@ extern void swap_to(int device_id);
|
||||
|
||||
static char *make_command_line(void)
|
||||
{
|
||||
char *dest = (char *)CMD_LINE_ADDR;
|
||||
char *dest = (char *)CONFIG_LINUX_CMDLINE_ADDR;
|
||||
char *bootargs = getenv("bootargs");
|
||||
|
||||
if (bootargs == NULL)
|
||||
return NULL;
|
||||
|
||||
strncpy(dest, bootargs, 0x1000);
|
||||
dest[0xfff] = 0;
|
||||
strncpy(dest, bootargs, CONFIG_LINUX_CMDLINE_SIZE);
|
||||
dest[CONFIG_LINUX_CMDLINE_SIZE - 1] = 0;
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user