2 * Startup code for use with the u-boot bootloader.
4 * Copyright (C) 2004-2006 Atmel Corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #include <asm/setup.h>
13 * The kernel is loaded where we want it to be and all caches
14 * have just been flushed. We get two parameters from u-boot:
16 * r12 contains a magic number (ATAG_MAGIC)
17 * r11 points to a tag table providing information about
20 .section .init.text,"ax"
23 /* Check if the boot loader actually provided a tag table */
24 lddpc r0, magic_number
29 lddpc r2, bss_start_addr
38 * Save the tag table address for later use. This must be done
39 * _after_ .bss has been initialized...
41 lddpc r0, tag_table_addr
44 /* Jump to loader-independent setup code */
60 2: .asciz "Boot loader didn't provide correct magic number\n"