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 2007 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#include <sys/asm_linkage.h>
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync DGDEF(__fsr_init_value)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync .long 0
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ENTRY(waiting)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync pushl %ebp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync movl %esp, %ebp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync movl 8(%ebp), %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync movl (%eax), %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync popl %ebp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ret
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync SET_SIZE(waiting)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ENTRY(main)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync pushl %ebp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync movl %esp, %ebp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync subl $0x4, %esp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync movl $0x0, -4(%ebp)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync1:
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync leal -4(%ebp), %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync pushl %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync call waiting
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync addl $0x4, %esp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync testl %eax, %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync jz 1b
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync addl $0x4, %esp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync xorl %eax, %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync testl %eax, %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync jz other
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ALTENTRY(bad)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync movl 0x0, %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync SET_SIZE(bad)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync SET_SIZE(main)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ENTRY(other)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync xorl %eax, %eax
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync popl %ebp
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync ret
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync SET_SIZE(other)