aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/setup.c
diff options
context:
space:
mode:
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 776ea1aa974b..d5231ae7355a 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -47,7 +47,9 @@
47#include <asm/traps.h> 47#include <asm/traps.h>
48#include <asm/unwind.h> 48#include <asm/unwind.h>
49 49
50#if defined(CONFIG_DEPRECATED_PARAM_STRUCT)
50#include "compat.h" 51#include "compat.h"
52#endif
51#include "atags.h" 53#include "atags.h"
52#include "tcm.h" 54#include "tcm.h"
53 55
@@ -755,6 +757,13 @@ static int __init setup_elfcorehdr(char *arg)
755early_param("elfcorehdr", setup_elfcorehdr); 757early_param("elfcorehdr", setup_elfcorehdr);
756#endif /* CONFIG_CRASH_DUMP */ 758#endif /* CONFIG_CRASH_DUMP */
757 759
760static void __init squash_mem_tags(struct tag *tag)
761{
762 for (; tag->hdr.size; tag = tag_next(tag))
763 if (tag->hdr.tag == ATAG_MEM)
764 tag->hdr.tag = ATAG_NONE;
765}
766
758void __init setup_arch(char **cmdline_p) 767void __init setup_arch(char **cmdline_p)
759{ 768{
760 struct tag *tags = (struct tag *)&init_tags; 769 struct tag *tags = (struct tag *)&init_tags;
@@ -775,12 +784,14 @@ void __init setup_arch(char **cmdline_p)
775 else if (mdesc->boot_params) 784 else if (mdesc->boot_params)
776 tags = phys_to_virt(mdesc->boot_params); 785 tags = phys_to_virt(mdesc->boot_params);
777 786
787#if defined(CONFIG_DEPRECATED_PARAM_STRUCT)
778 /* 788 /*
779 * If we have the old style parameters, convert them to 789 * If we have the old style parameters, convert them to
780 * a tag list. 790 * a tag list.
781 */ 791 */
782 if (tags->hdr.tag != ATAG_CORE) 792 if (tags->hdr.tag != ATAG_CORE)
783 convert_to_tag_list(tags); 793 convert_to_tag_list(tags);
794#endif
784 if (tags->hdr.tag != ATAG_CORE) 795 if (tags->hdr.tag != ATAG_CORE)
785 tags = (struct tag *)&init_tags; 796 tags = (struct tag *)&init_tags;
786 797