]> git.hungrycats.org Git - linux/commitdiff
[PATCH] configuration boot arguments for ColdFire/5249 targets
authorGreg Ungerer <gerg@snapgear.com>
Sat, 21 Jun 2003 03:20:55 +0000 (20:20 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Jun 2003 03:20:55 +0000 (20:20 -0700)
Allow for hard setting of boot arguments from configuration for
the Motorola Coldfire 5249 CPU targets.

arch/m68knommu/platform/5249/config.c

index 5d09dcf110b7f8d762766ecc80317b464d40f54f..a038092a2e4788ce5299213f46ea9a198b09dfd3 100644 (file)
@@ -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;