2 * crt0.S for the Blackfin processor
4 * Copyright (C) 2006 Analog Devices, Inc.
6 * The authors hereby grant permission to use, copy, modify, distribute,
7 * and license this software and its documentation for any purpose, provided
8 * that existing copyright notices are retained in all copies and that this
9 * notice is included verbatim in any distributions. No written agreement,
10 * license, or royalty fee is required for any of the authorized uses.
11 * Modifications to this software may be copyrighted by their authors
12 * and need not follow the licensing terms described here, provided that
13 * the new terms are clearly indicated on the first page of each file where
23 /* Start by setting up a stack */
25 /* Zero the memory in the .bss section. */
33 lsetup (L$L$clear_bss, L$L$clear_bss) lc0 = p1;
38 /* Set up GOT pointer. */
39 P0.L = __ROFIXUP_END__;
40 P0.H = __ROFIXUP_END__;
44 /* Need to set up standard file handles */
45 /* Parse string at r1 */
55 r0 = [P4 + __fini@FUNCDESC_GOT17M4];
63 p0.l = ___setup_argv_and_call_main;
64 p0.h = ___setup_argv_and_call_main;
71 jump (p0) /* Should not return. */