8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sgs / rtld / sparcv9 / caller.s
blobe9b84322654cc77a9a7a358cec6e0a8c385dd2df
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
26 * Return the pc of the calling routine.
28 #pragma ident "%Z%%M% %I% %E% SMI"
30 #if defined(lint)
32 #include <sys/types.h>
34 caddr_t
35 caller()
37 return (0);
40 /* ARGSUSED */
41 void
42 set_sparc_g1(ulong_t val)
44 return;
47 /* ARGSUSED */
48 void
49 set_sparc_g2(ulong_t val)
51 return;
54 /* ARGSUSED */
55 void
56 set_sparc_g3(ulong_t val)
58 return;
61 /* ARGSUSED */
62 void
63 set_sparc_g4(ulong_t val)
65 return;
68 /* ARGSUSED */
69 void
70 set_sparc_g5(ulong_t val)
72 return;
75 /* ARGSUSED */
76 void
77 set_sparc_g6(ulong_t val)
79 return;
82 /* ARGSUSED */
83 void
84 set_sparc_g7(ulong_t val)
86 return;
89 #else
91 #include <sys/asm_linkage.h>
93 .file "caller.s"
95 ENTRY(caller)
96 retl
97 mov %i7, %o0
98 SET_SIZE(caller)
100 ENTRY(set_sparc_g1)
101 retl
102 mov %o0, %g1
103 SET_SIZE(set_sparc_g1)
105 ENTRY(set_sparc_g2)
106 retl
107 mov %o0, %g2
108 SET_SIZE(set_sparc_g2)
110 ENTRY(set_sparc_g3)
111 retl
112 mov %o0, %g3
113 SET_SIZE(set_sparc_g3)
115 ENTRY(set_sparc_g4)
116 retl
117 mov %o0, %g4
118 SET_SIZE(set_sparc_g4)
120 ENTRY(set_sparc_g5)
121 retl
122 mov %o0, %g5
123 SET_SIZE(set_sparc_g5)
125 ENTRY(set_sparc_g6)
126 retl
127 mov %o0, %g6
128 SET_SIZE(set_sparc_g6)
130 ENTRY(set_sparc_g7)
131 retl
132 mov %o0, %g7
133 SET_SIZE(set_sparc_g7)
134 #endif