crti.S revision 1.1
11.1Scherry/* $NetBSD: crti.S,v 1.1 2014/03/14 18:15:02 cherry Exp $ */
21.1Scherry
31.1Scherry/*-
41.1Scherry * Copyright (c) 2014 The NetBSD Foundation, Inc.
51.1Scherry * All rights reserved.
61.1Scherry *
71.1Scherry * This code is derived from software contributed to The NetBSD Foundation
81.1Scherry * by Cherry G. Mathew of Backyard Innovations, UK, Ltd.
91.1Scherry *
101.1Scherry * Redistribution and use in source and binary forms, with or without
111.1Scherry * modification, are permitted provided that the following conditions
121.1Scherry * are met:
131.1Scherry * 1. Redistributions of source code must retain the above copyright
141.1Scherry *    notice, this list of conditions and the following disclaimer.
151.1Scherry * 2. Redistributions in binary form must reproduce the above copyright
161.1Scherry *    notice, this list of conditions and the following disclaimer in the
171.1Scherry *    documentation and/or other materials provided with the distribution.
181.1Scherry *
191.1Scherry * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Scherry * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Scherry * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Scherry * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Scherry * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Scherry * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Scherry * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Scherry * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Scherry * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Scherry * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Scherry * POSSIBILITY OF SUCH DAMAGE.
301.1Scherry */
311.1Scherry
321.1Scherry#include <machine/asm.h>
331.1Scherry
341.1ScherryRCSID("$NetBSD: crti.S,v 1.1 2014/03/14 18:15:02 cherry Exp $")
351.1Scherry
361.1Scherry#include "sysident.S"
371.1Scherry
381.1Scherry	.section ".init", "ax", @progbits
391.1Scherry	.align 64
401.1Scherry	.proc _init
411.1Scherry	.global _init
421.1Scherry_init:
431.1Scherry	.regstk	0, 2, 0, 0
441.1Scherry	.prologue 12, loc0
451.1Scherry	.save ar.pfs, loc1
461.1Scherry	alloc	loc1 = ar.pfs, 0, 2, 0, 0
471.1Scherry	mov	loc0 = b0 /* return addr */
481.1Scherry	.endp _init
491.1Scherry
501.1Scherry	.section ".fini", "ax", @progbits
511.1Scherry	.align 64
521.1Scherry	.proc _fini
531.1Scherry	.global _fini
541.1Scherry_fini:
551.1Scherry	.regstk	0, 2, 0, 0
561.1Scherry	.prologue 12, loc0
571.1Scherry	.save ar.pfs, loc1
581.1Scherry	alloc	loc1 = ar.pfs, 0, 2, 0, 0
591.1Scherry	mov	loc0 = b0 /* return addr */
601.1Scherry	.endp _fini
611.1Scherry
621.1Scherry
63