14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER START
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * The contents of this file are subject to the terms of the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Common Development and Distribution License (the "License").
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You may not use this file except in compliance with the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * or http://www.opensolaris.org/os/licensing.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * See the License for the specific language governing permissions
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * and limitations under the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * When distributing Covered Code, include this CDDL HEADER in each
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * If applicable, add the following below this CDDL HEADER, with the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * fields enclosed by brackets "[]" replaced with your own identifying
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * information: Portions Copyright [yyyy] [name of copyright owner]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER END
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Use is subject to license terms.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#pragma ident "%Z%%M% %I% %E% SMI"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * ASSERTION:
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Positive test to make sure that we can invoke x86
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * ureg[] aliases.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * SECTION: User Process Tracing/uregs Array
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * NOTES: This test does no verification - the value of the output
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * is not deterministic.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#pragma D option quiet
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncBEGIN
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync{
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_GS = 0x%x\n", uregs[R_GS]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_ES = 0x%x\n", uregs[R_ES]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_DS = 0x%x\n", uregs[R_DS]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EDI = 0x%x\n", uregs[R_EDI]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_ESI = 0x%x\n", uregs[R_ESI]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EBP = 0x%x\n", uregs[R_EBP]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EBX = 0x%x\n", uregs[R_EBX]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EDX = 0x%x\n", uregs[R_EDX]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_ECX = 0x%x\n", uregs[R_ECX]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EAX = 0x%x\n", uregs[R_EAX]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_TRAPNO = 0x%x\n", uregs[R_TRAPNO]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_ERR = 0x%x\n", uregs[R_ERR]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EIP = 0x%x\n", uregs[R_EIP]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_CS = 0x%x\n", uregs[R_CS]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_EFL = 0x%x\n", uregs[R_EFL]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_UESP = 0x%x\n", uregs[R_UESP]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync printf("R_SS = 0x%x\n", uregs[R_SS]);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync exit(0);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync}