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