Commit 9c7535e4 authored by Greg Ungerer's avatar Greg Ungerer Committed by Jeff Garzik

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

Support pre-configured boot arguments on m68knommu/5206e targets.
parent 2aa5e4cf
...@@ -97,7 +97,10 @@ void config_BSP(char *commandp, int size) ...@@ -97,7 +97,10 @@ void config_BSP(char *commandp, int size)
{ {
mcf_setimr(MCFSIM_IMR_MASKALL); mcf_setimr(MCFSIM_IMR_MASKALL);
#ifdef CONFIG_NETtel #if defined(CONFIG_BOOTPARAM)
strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
commandp[size-1] = 0;
#elif defined(CONFIG_NETtel)
/* Copy command line from FLASH to local buffer... */ /* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xf0004000, size); memcpy(commandp, (char *) 0xf0004000, size);
commandp[size-1] = 0; commandp[size-1] = 0;
......
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