9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * or http://www.opensolaris.org/os/licensing.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Use is subject to license terms.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#pragma ident "%Z%%M% %I% %E% SMI"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/*
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * ASSERTION:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Positive test to make sure that we can invoke sparc
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * ureg[] aliases.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * SECTION: User Process Tracing/uregs Array
9512fe850e98fdd448c638ca63fdd92a8a510255ahl *
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * NOTES: This test does no verification - the value of the output
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * is not deterministic.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#pragma D option quiet
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBEGIN
9512fe850e98fdd448c638ca63fdd92a8a510255ahl{
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G0 = 0x%x\n", uregs[R_G0]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G1 = 0x%x\n", uregs[R_G1]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G2 = 0x%x\n", uregs[R_G2]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G3 = 0x%x\n", uregs[R_G3]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G4 = 0x%x\n", uregs[R_G4]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G5 = 0x%x\n", uregs[R_G5]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G6 = 0x%x\n", uregs[R_G6]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_G7 = 0x%x\n", uregs[R_G7]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O0 = 0x%x\n", uregs[R_O0]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O1 = 0x%x\n", uregs[R_O1]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O2 = 0x%x\n", uregs[R_O2]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O3 = 0x%x\n", uregs[R_O3]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O4 = 0x%x\n", uregs[R_O4]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O5 = 0x%x\n", uregs[R_O5]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O6 = 0x%x\n", uregs[R_O6]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_O7 = 0x%x\n", uregs[R_O7]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L0 = 0x%x\n", uregs[R_L0]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L1 = 0x%x\n", uregs[R_L1]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L2 = 0x%x\n", uregs[R_L2]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L3 = 0x%x\n", uregs[R_L3]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L4 = 0x%x\n", uregs[R_L4]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L5 = 0x%x\n", uregs[R_L5]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L6 = 0x%x\n", uregs[R_L6]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_L7 = 0x%x\n", uregs[R_L7]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I0 = 0x%x\n", uregs[R_I0]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I1 = 0x%x\n", uregs[R_I1]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I2 = 0x%x\n", uregs[R_I2]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I3 = 0x%x\n", uregs[R_I3]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I4 = 0x%x\n", uregs[R_I4]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I5 = 0x%x\n", uregs[R_I5]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I6 = 0x%x\n", uregs[R_I6]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_I7 = 0x%x\n", uregs[R_I7]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_CCR = 0x%x\n", uregs[R_CCR]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_PC = 0x%x\n", uregs[R_PC]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_NPC = 0x%x\n", uregs[R_NPC]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_Y = 0x%x\n", uregs[R_Y]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_ASI = 0x%x\n", uregs[R_ASI]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl printf("R_FPRS = 0x%x\n", uregs[R_FPRS]);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl exit(0);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl}