Commit 3ac3af29 authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Moved parse_tag_omap to common.c

In 2.6.13-rc1 arch.c disappears.
parent b336048f
......@@ -45,26 +45,3 @@ static int __init parse_tag_acorn(const struct tag *tag)
__tagtable(ATAG_ACORN, parse_tag_acorn);
#endif
#ifdef CONFIG_OMAP_BOOT_TAG
unsigned char omap_bootloader_tag[512];
int omap_bootloader_tag_len = 0;
static int __init parse_tag_omap(const struct tag *tag)
{
u32 size = tag->hdr.size - (sizeof(tag->hdr) >> 2);
size <<= 2;
if (size > sizeof(omap_bootloader_tag))
return -1;
memcpy(omap_bootloader_tag, tag->u.omap.data, size);
omap_bootloader_tag_len = size;
return 0;
}
__tagtable(ATAG_BOARD, parse_tag_omap);
#endif
......@@ -35,12 +35,32 @@
#define NO_LENGTH_CHECK 0xffffffff
extern int omap_bootloader_tag_len;
extern u8 omap_bootloader_tag[];
unsigned char omap_bootloader_tag[512];
int omap_bootloader_tag_len = 0;
struct omap_board_config_kernel *omap_board_config;
int omap_board_config_size = 0;
#ifdef CONFIG_OMAP_BOOT_TAG
static int __init parse_tag_omap(const struct tag *tag)
{
u32 size = tag->hdr.size - (sizeof(tag->hdr) >> 2);
size <<= 2;
if (size > sizeof(omap_bootloader_tag))
return -1;
memcpy(omap_bootloader_tag, tag->u.omap.data, size);
omap_bootloader_tag_len = size;
return 0;
}
__tagtable(ATAG_BOARD, parse_tag_omap);
#endif
static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
{
struct omap_board_config_kernel *kinfo = NULL;
......
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