xref: /titanic_41/usr/src/lib/libumem/i386/asm_subr.s (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#pragma ident	"%Z%%M%	%I%	%E% SMI"
28
29#include <sys/asm_linkage.h>
30
31#if defined(lint)
32
33void *
34getfp(void)
35{
36	return (NULL);
37}
38
39#ifndef UMEM_STANDALONE
40void
41_breakpoint(void)
42{
43	return;
44}
45#endif
46
47#else	/* lint */
48
49#if defined(__amd64)
50
51	ENTRY(getfp)
52	movq	%rbp, %rax
53	ret
54	SET_SIZE(getfp)
55
56#else	/* __i386 */
57
58	ENTRY(getfp)
59	movl	%ebp, %eax
60	ret
61	SET_SIZE(getfp)
62
63#endif
64
65#ifndef UMEM_STANDALONE
66	ENTRY(_breakpoint)
67	int	$3
68	ret
69	SET_SIZE(_breakpoint)
70#endif
71
72#endif	/* lint */
73