Lines Matching refs:tag
76 * the kernel. The first tag must be a BP_TAG_FIRST tag for the list
78 * BP_TAG_LAST tag.
82 u32 tag;
86 #define __tagtable(tag, fn) static tagtable_t __tagtable_##fn \
87 __section(".taglist") __attribute__((used)) = { tag, fn }
89 /* parse current tag */
91 static int __init parse_tag_mem(const bp_tag_t *tag)
93 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data);
105 static int __init parse_tag_initrd(const bp_tag_t* tag)
107 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data);
121 static int __init parse_tag_fdt(const bp_tag_t *tag)
123 dtb_start = __va(tag->data[0]);
131 static int __init parse_tag_cmdline(const bp_tag_t* tag)
133 strscpy(command_line, (char *)(tag->data), COMMAND_LINE_SIZE);
139 static int __init parse_bootparam(const bp_tag_t* tag)
144 /* Boot parameters must start with a BP_TAG_FIRST tag. */
146 if (tag->id != BP_TAG_FIRST) {
151 tag = (bp_tag_t*)((unsigned long)tag + sizeof(bp_tag_t) + tag->size);
155 while (tag != NULL && tag->id != BP_TAG_LAST) {
157 if (tag->id == t->tag) {
158 t->parse(tag);
163 pr_warn("Ignoring tag 0x%08x\n", tag->id);
164 tag = (bp_tag_t*)((unsigned long)(tag + 1) + tag->size);
170 static int __init parse_bootparam(const bp_tag_t *tag)
172 pr_info("Ignoring boot parameters at %p\n", tag);