xref: /freebsd/lib/csu/powerpc/crtn.S (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
1de7c4577SDavid E. O'Brien/*-
2de7c4577SDavid E. O'Brien * Copyright 2001 David E. O'Brien
3de7c4577SDavid E. O'Brien * All rights reserved.
4de7c4577SDavid E. O'Brien *
5de7c4577SDavid E. O'Brien * Redistribution and use in source and binary forms, with or without
6de7c4577SDavid E. O'Brien * modification, are permitted provided that the following conditions
7de7c4577SDavid E. O'Brien * are met:
8de7c4577SDavid E. O'Brien * 1. Redistributions of source code must retain the above copyright
9de7c4577SDavid E. O'Brien *    notice, this list of conditions and the following disclaimer.
10de7c4577SDavid E. O'Brien * 2. Redistributions in binary form must reproduce the above copyright
11de7c4577SDavid E. O'Brien *    notice, this list of conditions and the following disclaimer in the
12de7c4577SDavid E. O'Brien *    documentation and/or other materials provided with the distribution.
13de7c4577SDavid E. O'Brien *
14de7c4577SDavid E. O'Brien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15de7c4577SDavid E. O'Brien * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16de7c4577SDavid E. O'Brien * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17de7c4577SDavid E. O'Brien * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18de7c4577SDavid E. O'Brien * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19de7c4577SDavid E. O'Brien * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20de7c4577SDavid E. O'Brien * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21de7c4577SDavid E. O'Brien * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22de7c4577SDavid E. O'Brien * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23de7c4577SDavid E. O'Brien * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24de7c4577SDavid E. O'Brien */
25de7c4577SDavid E. O'Brien
26cbbcfbf8SDimitry Andric#include <machine/asm.h>
27de7c4577SDavid E. O'Brien	.section .init,"ax",@progbits
28de7c4577SDavid E. O'Brien	lwz 11,0(1)
29de7c4577SDavid E. O'Brien	lwz 0,4(11)
30de7c4577SDavid E. O'Brien	mtlr 0
31de7c4577SDavid E. O'Brien	lwz 31,-4(11)
32de7c4577SDavid E. O'Brien	mr 1,11
33de7c4577SDavid E. O'Brien	blr
34de7c4577SDavid E. O'Brien
35de7c4577SDavid E. O'Brien
36de7c4577SDavid E. O'Brien	.section .fini,"ax",@progbits
37de7c4577SDavid E. O'Brien	lwz 11,0(1)
38de7c4577SDavid E. O'Brien	lwz 0,4(11)
39de7c4577SDavid E. O'Brien	mtlr 0
40de7c4577SDavid E. O'Brien	lwz 31,-4(11)
41de7c4577SDavid E. O'Brien	mr 1,11
42de7c4577SDavid E. O'Brien	blr
43*33e6b543SKonstantin Belousov
44*33e6b543SKonstantin Belousov	.section .note.GNU-stack,"",%progbits
45