xref: /titanic_50/usr/src/lib/libtnfctl/sparc_assm.s (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
1!
2!	ident	"%Z%%M%	%I%	%E% SMI"
3!
4!	 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5!	 Use is subject to license terms.
6!
7!	 CDDL HEADER START
8!
9!	 The contents of this file are subject to the terms of the
10!	 Common Development and Distribution License, Version 1.0 only
11!	 (the "License").  You may not use this file except in compliance
12!	 with the License.
13!
14!	 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15!	 or http://www.opensolaris.org/os/licensing.
16!	 See the License for the specific language governing permissions
17!	 and limitations under the License.
18!
19!	 When distributing Covered Code, include this CDDL HEADER in each
20!	 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21!	 If applicable, add the following below this CDDL HEADER, with the
22!	 fields enclosed by brackets "[]" replaced with your own identifying
23!	 information: Portions Copyright [yyyy] [name of copyright owner]
24!
25!	 CDDL HEADER END
26!
27!
28	.ident		"%Z%%M%	%I%	%E% SMI"
29	.file		"%M%"
30	.section	".data"
31	.align		4
32	.global		prb_callinfo
33prb_callinfo:
34	.word		0		! offset
35	.word		2		! shift right
36	.word		0x3fffffff	! mask
37
38	.section	".text"
39	.align		4
40	.global		prb_chain_entry
41	.global		prb_chain_down
42	.global		prb_chain_next
43	.global		prb_chain_end
44	.local		chain_down
45	.local		chain_next
46prb_chain_entry:
47	save		%sp, -80, %sp
48	or		%i0, %g0, %o0
49	or		%i1, %g0, %o1
50prb_chain_down:
51chain_down:
52	call		chain_down
53	or		%i2, %g0, %o2
54prb_chain_next:
55chain_next:
56	call		chain_next
57	restore		%g0, %g0, %g0
58prb_chain_end:
59	nop
60