fast_trap_asm.s revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/asm_linkage.h>
#include <sys/asm_misc.h>
#if defined(__lint)
#else /* __lint */
#include <sys/traptrace.h>
#include "assym.h"
#endif /* __lint */
#if defined(__lint)
get_hrtime(void)
{ return (0); }
get_hrestime(void)
{
return (ts);
}
gethrvtime(void)
{
}
getlgrp(void)
{
}
#else /* __lint */
/*
* XX64: We are assuming that libc continues to expect the 64-bit value being
* returned in %edx:%eax. We further assume that it is safe to leave
* the top 32-bit intact in %rax as they will be ignored by libc. In
* other words, if the 64-bit value is already in %rax, while we manually
* manufacture a 64-bit value in %edx:%eax by setting %edx to be the high
* 32 bits of %rax, we don't zero them out in %rax.
* The following amd64 versions will need to be changed if the above
* assumptions are not true.
*/
#if defined(__amd64)
#endif /* __i386 */
#if defined(__amd64)
#endif /* __i386 */
#if defined(__amd64)
#endif /* __i386 */
#if defined(__amd64)
#endif /* __i386 */
#endif /* __lint */