From 1281c3f03feb85d1c7aa2e7d4ac3d579532b03af Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Fri, 20 Jun 2003 20:20:55 -0700 Subject: [PATCH] [PATCH] configuration boot arguments for ColdFire/5249 targets Allow for hard setting of boot arguments from configuration for the Motorola Coldfire 5249 CPU targets. --- arch/m68knommu/platform/5249/config.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/m68knommu/platform/5249/config.c b/arch/m68knommu/platform/5249/config.c index 5d09dcf110b7..a038092a2e47 100644 --- a/arch/m68knommu/platform/5249/config.c +++ b/arch/m68knommu/platform/5249/config.c @@ -95,7 +95,13 @@ int mcf_timerirqpending(int timer) void config_BSP(char *commandp, int size) { mcf_setimr(MCFSIM_IMR_MASKALL); + +#if defined(CONFIG_BOOTPARAM) + strncpy(commandp, CONFIG_BOOTPARAM_STRING, size); + commandp[size-1] = 0; +#else memset(commandp, 0, size); +#endif mach_sched_init = coldfire_timer_init; mach_tick = coldfire_tick; -- 2.39.5