summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorYacine Belkadi2012-12-21 15:02:31 +0100
committerYacine Belkadi2013-01-02 11:25:52 +0100
commitf2f767a90046d6272d4db3a71e9b34dd9416aed5 (patch)
tree66261e8796a52ce426b8907b134e568f29932c4c /cleopatre
parent1343ecf318154347d10631409864b72d27e4cabe (diff)
cleo/linux/arch/arm/spc300: fix "Ignoring unrecognised tag 0x00000000", closes #3650
On SPC300, u-boot passes an ATAG_SPC300 tag to the Linux kernel. That tag is intercepted by spc300_fixup(). This function consumes the tag, then turns it into an ATAG_NONE. The problem is that the function doesn't set the size to 0. Then when the kernel parses the tags, it fails to recognize the ATAG_NONE, and prints the boot message: "Ignoring unrecognised tag 0x00000000" Fix that by setting the size of the new ATAG_NONE tag to 0.
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c
index e07fcda3fe..3a5b3bf22d 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300.c
@@ -360,6 +360,7 @@ void spc300_fixup(struct machine_desc *desc, struct tag *tags, char **cmdline, s
{
nvram_offset = tags->u.spc300.nvram_offset;
tags->hdr.tag = ATAG_NONE;
+ tags->hdr.size = 0;
spc300_plc_mem_size = tags->u.spc300.plc_mem_size;
}