kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / cmd / mdb / sparc / kmdb / kmdb_asmutil.s
blob0159fb75e7fbf15de9dab7555907d5b3df6423d3
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * Utility Assembly routines used by the debugger.
32 #include <sys/asm_linkage.h>
33 #include <sys/privregs.h>
34 #include "mach_asmutil.h"
37 ENTRY(get_nwin)
38 GET_NWIN(%g4, %g3); /* %g4 is scratch, %g3 set to nwin-1 */
39 mov %g3, %o0
40 retl
41 add %o0, 1, %o0
42 SET_SIZE(get_nwin)
46 ENTRY(get_fp)
47 retl
48 mov %fp, %o0
49 SET_SIZE(get_fp)
53 ENTRY(interrupts_on)
54 rdpr %pstate, %o0
55 bset PSTATE_IE, %o0
56 retl
57 wrpr %o0, %pstate
58 SET_SIZE(interrupts_on)
62 ENTRY(interrupts_off)
63 rdpr %pstate, %o0
64 bclr PSTATE_IE, %o0
65 retl
66 wrpr %o0, %pstate
67 SET_SIZE(interrupts_off)
71 ENTRY(get_tba)
72 retl
73 rdpr %tba, %o0
74 SET_SIZE(get_tba)
78 ENTRY(set_tba)
79 retl
80 wrpr %o0, %tba
81 SET_SIZE(set_tba)