Commit 2aa5e4cf authored by Greg Ungerer's avatar Greg Ungerer Committed by Jeff Garzik

[PATCH] support BOOTPARAM's on m68knommu/5206 targets

Support pre-configured boot arguments on m68knommu/5206 targets.
parent 3a0c121f
...@@ -96,7 +96,13 @@ int mcf_timerirqpending(int timer) ...@@ -96,7 +96,13 @@ int mcf_timerirqpending(int timer)
void config_BSP(char *commandp, int size) void config_BSP(char *commandp, int size)
{ {
mcf_setimr(MCFSIM_IMR_MASKALL); mcf_setimr(MCFSIM_IMR_MASKALL);
#if defined(CONFIG_BOOTPARAM)
strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
commandp[size-1] = 0;
#else
memset(commandp, 0, size); memset(commandp, 0, size);
#endif
mach_sched_init = coldfire_timer_init; mach_sched_init = coldfire_timer_init;
mach_tick = coldfire_tick; mach_tick = coldfire_tick;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment