aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/setup.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-01-19 04:13:14 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-07-07 10:38:36 -0400
commit73a65b3f8587fa1c83768515ecc0bf6fa44ccdd1 (patch)
tree89a93172ce10f0e965c02b4a14aa55475ef88673 /arch/arm/kernel/setup.c
parent8d68fe7029ed2631363f6f37155586c0707b8dc0 (diff)
ARM: deprecate support for old way to pass kernel parameters
This was deprecated in 2001 and announced to live on for 5 years. For now provide a kernel parameter for those who still need it. Acked-by: Eric Miao <eric.miao@canonical.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r--arch/arm/kernel/setup.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 122d999bdc7c..cbc6ddb1c9bd 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -44,7 +44,9 @@
44#include <asm/traps.h> 44#include <asm/traps.h>
45#include <asm/unwind.h> 45#include <asm/unwind.h>
46 46
47#if defined(CONFIG_DEPRECATED_PARAM_STRUCT)
47#include "compat.h" 48#include "compat.h"
49#endif
48#include "atags.h" 50#include "atags.h"
49#include "tcm.h" 51#include "tcm.h"
50 52
@@ -663,6 +665,13 @@ static int __init customize_machine(void)
663} 665}
664arch_initcall(customize_machine); 666arch_initcall(customize_machine);
665 667
668static void __init squash_mem_tags(struct tag *tag)
669{
670 for (; tag->hdr.size; tag = tag_next(tag))
671 if (tag->hdr.tag == ATAG_MEM)
672 tag->hdr.tag = ATAG_NONE;
673}
674
666void __init setup_arch(char **cmdline_p) 675void __init setup_arch(char **cmdline_p)
667{ 676{
668 struct tag *tags = (struct tag *)&init_tags; 677 struct tag *tags = (struct tag *)&init_tags;
@@ -683,12 +692,14 @@ void __init setup_arch(char **cmdline_p)
683 else if (mdesc->boot_params) 692 else if (mdesc->boot_params)
684 tags = phys_to_virt(mdesc->boot_params); 693 tags = phys_to_virt(mdesc->boot_params);
685 694
695#if defined(CONFIG_DEPRECATED_PARAM_STRUCT)
686 /* 696 /*
687 * If we have the old style parameters, convert them to 697 * If we have the old style parameters, convert them to
688 * a tag list. 698 * a tag list.
689 */ 699 */
690 if (tags->hdr.tag != ATAG_CORE) 700 if (tags->hdr.tag != ATAG_CORE)
691 convert_to_tag_list(tags); 701 convert_to_tag_list(tags);
702#endif
692 if (tags->hdr.tag != ATAG_CORE) 703 if (tags->hdr.tag != ATAG_CORE)
693 tags = (struct tag *)&init_tags; 704 tags = (struct tag *)&init_tags;
694 705