Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4u/sunfire/ml/sysctrl_asm.s
+++ new/usr/src/uts/sun4u/sunfire/ml/sysctrl_asm.s
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26
27 -#pragma ident "%Z%%M% %I% %E% SMI"
28 -
29 27 #include <sys/param.h>
30 28 #include <sys/errno.h>
31 29 #include <sys/asm_linkage.h>
32 30 #include <sys/vtrace.h>
33 31 #include <sys/machthread.h>
34 32 #include <sys/clock.h>
35 33 #include <sys/asi.h>
36 34 #include <sys/fsr.h>
37 35 #include <sys/privregs.h>
38 36 #include <sys/pte.h>
39 37 #include <sys/mmu.h>
40 38 #include <sys/spitregs.h>
41 39
42 -#if defined(lint)
43 -
44 -#else /* lint */
45 40 #include "assym.h"
46 -#endif /* lint */
47 41
48 42 #define TT_HSM 0x99
49 43
50 -#if defined(lint)
51 -void
52 -sysctrl_freeze(void)
53 -{}
54 -#else /* lint */
55 44 /*
56 45 * This routine quiets a cpu and has it spin on a barrier.
57 46 * It is used during memory sparing so that no memory operation
58 47 * occurs during the memory copy.
59 48 *
60 49 * Entry:
61 50 * %g1 - gate array base address
62 51 * %g2 - barrier base address
63 52 * %g3 - arg2
64 53 * %g4 - arg3
65 54 *
66 55 * Register Usage:
67 56 * %g3 - saved pstate
68 57 * %g4 - temporary
69 58 * %g5 - check for panicstr
70 59 */
71 60 ENTRY_NP(sysctrl_freeze)
72 61 CPU_INDEX(%g4, %g5)
73 62 sll %g4, 2, %g4
74 63 add %g4, %g1, %g4 ! compute address of gate id
75 64
76 65 st %g4, [%g4] ! indicate we are ready
77 66 membar #Sync
78 67 1:
79 68 sethi %hi(panicstr), %g5
80 69 ldn [%g5 + %lo(panicstr)], %g5
81 70 brnz %g5, 2f ! exit if in panic
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
82 71 nop
83 72 ld [%g2], %g4
84 73 brz,pt %g4, 1b ! spin until barrier true
85 74 nop
86 75
87 76 2:
88 77 retry
89 78 membar #Sync
90 79 SET_SIZE(sysctrl_freeze)
91 80
92 -#endif /* lint */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX