xref: /titanic_50/usr/src/lib/libtnfctl/sparc_assm.s (revision 9a70fc3be3b1e966bf78825cdb8d509963a6f0a1)
17c478bd9Sstevel@tonic-gate!
27c478bd9Sstevel@tonic-gate!	 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate!	 Use is subject to license terms.
47c478bd9Sstevel@tonic-gate!
57c478bd9Sstevel@tonic-gate!	 CDDL HEADER START
67c478bd9Sstevel@tonic-gate!
77c478bd9Sstevel@tonic-gate!	 The contents of this file are subject to the terms of the
87c478bd9Sstevel@tonic-gate!	 Common Development and Distribution License, Version 1.0 only
97c478bd9Sstevel@tonic-gate!	 (the "License").  You may not use this file except in compliance
107c478bd9Sstevel@tonic-gate!	 with the License.
117c478bd9Sstevel@tonic-gate!
127c478bd9Sstevel@tonic-gate!	 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
137c478bd9Sstevel@tonic-gate!	 or http://www.opensolaris.org/os/licensing.
147c478bd9Sstevel@tonic-gate!	 See the License for the specific language governing permissions
157c478bd9Sstevel@tonic-gate!	 and limitations under the License.
167c478bd9Sstevel@tonic-gate!
177c478bd9Sstevel@tonic-gate!	 When distributing Covered Code, include this CDDL HEADER in each
187c478bd9Sstevel@tonic-gate!	 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
197c478bd9Sstevel@tonic-gate!	 If applicable, add the following below this CDDL HEADER, with the
207c478bd9Sstevel@tonic-gate!	 fields enclosed by brackets "[]" replaced with your own identifying
217c478bd9Sstevel@tonic-gate!	 information: Portions Copyright [yyyy] [name of copyright owner]
227c478bd9Sstevel@tonic-gate!
237c478bd9Sstevel@tonic-gate!	 CDDL HEADER END
247c478bd9Sstevel@tonic-gate!
25*9a70fc3bSMark J. Nelson
26*9a70fc3bSMark J. Nelson	.file		"sparc_assm.s"
277c478bd9Sstevel@tonic-gate	.section	".data"
287c478bd9Sstevel@tonic-gate	.align		4
297c478bd9Sstevel@tonic-gate	.global		prb_callinfo
307c478bd9Sstevel@tonic-gateprb_callinfo:
317c478bd9Sstevel@tonic-gate	.word		0		! offset
327c478bd9Sstevel@tonic-gate	.word		2		! shift right
337c478bd9Sstevel@tonic-gate	.word		0x3fffffff	! mask
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate	.section	".text"
367c478bd9Sstevel@tonic-gate	.align		4
377c478bd9Sstevel@tonic-gate	.global		prb_chain_entry
387c478bd9Sstevel@tonic-gate	.global		prb_chain_down
397c478bd9Sstevel@tonic-gate	.global		prb_chain_next
407c478bd9Sstevel@tonic-gate	.global		prb_chain_end
417c478bd9Sstevel@tonic-gate	.local		chain_down
427c478bd9Sstevel@tonic-gate	.local		chain_next
437c478bd9Sstevel@tonic-gateprb_chain_entry:
447c478bd9Sstevel@tonic-gate	save		%sp, -80, %sp
457c478bd9Sstevel@tonic-gate	or		%i0, %g0, %o0
467c478bd9Sstevel@tonic-gate	or		%i1, %g0, %o1
477c478bd9Sstevel@tonic-gateprb_chain_down:
487c478bd9Sstevel@tonic-gatechain_down:
497c478bd9Sstevel@tonic-gate	call		chain_down
507c478bd9Sstevel@tonic-gate	or		%i2, %g0, %o2
517c478bd9Sstevel@tonic-gateprb_chain_next:
527c478bd9Sstevel@tonic-gatechain_next:
537c478bd9Sstevel@tonic-gate	call		chain_next
547c478bd9Sstevel@tonic-gate	restore		%g0, %g0, %g0
557c478bd9Sstevel@tonic-gateprb_chain_end:
567c478bd9Sstevel@tonic-gate	nop
57