2 * Common Blackfin startup code
4 * Copyright 2004-2008 Analog Devices Inc.
6 * Enter bugs at http://blackfin.uclinux.org/
8 * Licensed under the GPL-2 or later.
11 #include <linux/linkage.h>
12 #include <linux/init.h>
13 #include <asm/blackfin.h>
14 #include <asm/thread_info.h>
15 #include <asm/trace.h>
17 /* A little BF561 glue ... */
19 # define WDOG_CTL WDOGA_CTL
25 /* Enable nested interrupts */
28 /* watchdog off for now */
35 /* Zero out the bss region
36 * Note: this will fail if bss is 0 bytes ...
47 lsetup (.L_clear_bss, .L_clear_bss) lc0 = p2;
51 /* In case there is a NULL pointer reference,
52 * zero out region before stext
59 lsetup (.L_clear_zero, .L_clear_zero) lc0 = p2;
63 /* Pass the u-boot arguments to the global value command line */
67 /* Load the current thread pointer and stack */
68 sp.l = _init_thread_union;
69 sp.h = _init_thread_union;