summaryrefslogtreecommitdiff
path: root/arch/m68knommu/platform/532x/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68knommu/platform/532x/config.c')
-rw-r--r--arch/m68knommu/platform/532x/config.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/arch/m68knommu/platform/532x/config.c b/arch/m68knommu/platform/532x/config.c
index 4f44b632045b..6dcc61bcdc55 100644
--- a/arch/m68knommu/platform/532x/config.c
+++ b/arch/m68knommu/platform/532x/config.c
@@ -115,22 +115,20 @@ void mcf_settimericr(unsigned int timer, unsigned int level)
}
/***************************************************************************/
-
-void __init config_BSP(char *commandp, int size)
-{
- mcf_setimr(MCFSIM_IMR_MASKALL);
-
#if !defined(CONFIG_BOOTPARAM)
+void __init platform_get_boot_command_line(void)
+{
/* Copy command line from FLASH to local buffer... */
- memcpy(commandp, (char *) 0x4000, 4);
- if(strncmp(commandp, "kcl ", 4) == 0){
- memcpy(commandp, (char *) 0x4004, size);
- commandp[size-1] = 0;
- } else {
- memset(commandp, 0, size);
- }
+ memcpy(boot_command_line, (char *)0x4000, 4);
+ if (strncmp(boot_command_line, "kcl ", 4) == 0)
+ strlcpy(boot_command_line, (char *)0x4004, COMMAND_LINE_SIZE);
+}
#endif
+void __init config_BSP(void)
+{
+ mcf_setimr(MCFSIM_IMR_MASKALL);
+
mcf_timervector = 64+32;
mcf_profilevector = 64+33;
mach_reset = coldfire_reset;