xref: /titanic_44/usr/src/lib/c_synonyms/sparcv9/synonyms.s (revision 9a70fc3be3b1e966bf78825cdb8d509963a6f0a1)
17257d1b4Sraf/*
27257d1b4Sraf * CDDL HEADER START
37257d1b4Sraf *
47257d1b4Sraf * The contents of this file are subject to the terms of the
57257d1b4Sraf * Common Development and Distribution License (the "License").
67257d1b4Sraf * You may not use this file except in compliance with the License.
77257d1b4Sraf *
87257d1b4Sraf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97257d1b4Sraf * or http://www.opensolaris.org/os/licensing.
107257d1b4Sraf * See the License for the specific language governing permissions
117257d1b4Sraf * and limitations under the License.
127257d1b4Sraf *
137257d1b4Sraf * When distributing Covered Code, include this CDDL HEADER in each
147257d1b4Sraf * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157257d1b4Sraf * If applicable, add the following below this CDDL HEADER, with the
167257d1b4Sraf * fields enclosed by brackets "[]" replaced with your own identifying
177257d1b4Sraf * information: Portions Copyright [yyyy] [name of copyright owner]
187257d1b4Sraf *
197257d1b4Sraf * CDDL HEADER END
207257d1b4Sraf */
217257d1b4Sraf
227257d1b4Sraf/*
237257d1b4Sraf * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
247257d1b4Sraf * Use is subject to license terms.
257257d1b4Sraf */
267257d1b4Sraf
27*9a70fc3bSMark J. Nelson	.file	"synonyms.s"
287257d1b4Sraf
297257d1b4Sraf#define	SYN(name)				\
307257d1b4Sraf	.align	4;				\
317257d1b4Sraf	.global	name;				\
327257d1b4Sraf	.global	_/**/name;			\
337257d1b4Sraf	.type	_/**/name, #function;		\
347257d1b4Sraf_/**/name:					\
357257d1b4Sraf	mov	%o7, %g1;			\
367257d1b4Sraf	call	name;				\
377257d1b4Sraf	mov	%g1, %o7;			\
387257d1b4Sraf	.size	_/**/name, (. - _/**/name)
397257d1b4Sraf
407257d1b4Sraf#define	SYN2(name)				\
417257d1b4Sraf	.align	4;				\
427257d1b4Sraf	.global	name;				\
437257d1b4Sraf	.global	__/**/name;			\
447257d1b4Sraf	.type	__/**/name, #function;		\
457257d1b4Sraf__/**/name:					\
467257d1b4Sraf	mov	%o7, %g1;			\
477257d1b4Sraf	call	name;				\
487257d1b4Sraf	mov	%g1, %o7;			\
497257d1b4Sraf	.size	__/**/name, (. - __/**/name)
507257d1b4Sraf
517257d1b4Sraf#include "synonym_list"
52