185597Speter/*-
285597Speter * Copyright (c) 2001 Peter Wemm <peter@FreeBSD.org>
385597Speter * All rights reserved.
485597Speter *
585597Speter * Redistribution and use in source and binary forms, with or without
685597Speter * modification, are permitted provided that the following conditions
785597Speter * are met:
885597Speter * 1. Redistributions of source code must retain the above copyright
985597Speter *    notice, this list of conditions and the following disclaimer.
1085597Speter * 2. Redistributions in binary form must reproduce the above copyright
1185597Speter *    notice, this list of conditions and the following disclaimer in the
1285597Speter *    documentation and/or other materials provided with the distribution.
1385597Speter *
1485597Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1585597Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1685597Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1785597Speter * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1885597Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1985597Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2085597Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2185597Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2285597Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2385597Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2485597Speter * SUCH DAMAGE.
2585597Speter *
2685597Speter * $FreeBSD$
2785597Speter */
2885597Speter
29216338Sdim#include <machine/asm.h>
30216338Sdim__FBSDID("$FreeBSD$");
31216338Sdim
3285597Speter/*
3385597Speter * This file (and its companion crtn.S) form the terminators of the
3485597Speter * .init and .fini sections.
3585597Speter */
3685597Speter	.file	"crti.S"
3785597Speter
3885679Speter	.section .init,"ax",@progbits
3985679Speter	.global	_init#
4085679Speter	.proc	_init#
4185597Speter_init:
4285952Speter	.regstk	0,2,0,0
4385952Speter	.prologue 12,loc0
4485952Speter	.save	ar.pfs,loc1
4585679Speter	alloc	loc1=ar.pfs,0,2,0,0
4685679Speter	mov	loc0=b0			/* Save return addr */
4785952Speter	.body
4885679Speter	.endp	_init#
4985597Speter
5085679Speter	.section .fini,"ax",@progbits
5185679Speter	.global	_fini#
5285679Speter	.proc	_fini#
5385597Speter_fini:
5485952Speter	.regstk	0,2,0,0
5585952Speter	.prologue 12,loc0
5685952Speter	.save	ar.pfs,loc1
5785679Speter	alloc	loc1=ar.pfs,0,2,0,0
5885679Speter	mov	loc0=b0			/* Save return addr */
5985952Speter	.body
6085679Speter	.endp	_fini#
61