xref: /onnv-gate/usr/src/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.s (revision 3944:75371f172291)
13682Sjhaslam/*
23682Sjhaslam * CDDL HEADER START
33682Sjhaslam *
43682Sjhaslam * The contents of this file are subject to the terms of the
53682Sjhaslam * Common Development and Distribution License (the "License").
63682Sjhaslam * You may not use this file except in compliance with the License.
73682Sjhaslam *
83682Sjhaslam * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93682Sjhaslam * or http://www.opensolaris.org/os/licensing.
103682Sjhaslam * See the License for the specific language governing permissions
113682Sjhaslam * and limitations under the License.
123682Sjhaslam *
133682Sjhaslam * When distributing Covered Code, include this CDDL HEADER in each
143682Sjhaslam * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153682Sjhaslam * If applicable, add the following below this CDDL HEADER, with the
163682Sjhaslam * fields enclosed by brackets "[]" replaced with your own identifying
173682Sjhaslam * information: Portions Copyright [yyyy] [name of copyright owner]
183682Sjhaslam *
193682Sjhaslam * CDDL HEADER END
203682Sjhaslam */
213682Sjhaslam
223682Sjhaslam/*
233682Sjhaslam * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
243682Sjhaslam * Use is subject to license terms.
253682Sjhaslam */
263682Sjhaslam
273682Sjhaslam#pragma ident	"%Z%%M%	%I%	%E% SMI"
283682Sjhaslam
293682Sjhaslam#include <sys/asm_linkage.h>
303682Sjhaslam
31*3944Sahl	DGDEF(__fsr_init_value)
32*3944Sahl	.word 0
33*3944Sahl
343682Sjhaslam	ENTRY(main)
353682Sjhaslam	save	%sp, -SA(MINFRAME), %sp
363682Sjhaslam	mov	%sp, %fp
373682Sjhaslamloop:
383682Sjhaslam	call	getpid
393682Sjhaslam	nop
403682Sjhaslam	ba	loop
413682Sjhaslam	nop
423682Sjhaslam	ret
433682Sjhaslam	restore
443682Sjhaslam	SET_SIZE(main)
45