Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/io/glvc/glvc_hcall.s
+++ new/usr/src/uts/sun4v/io/glvc/glvc_hcall.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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 -#pragma ident "%Z%%M% %I% %E% SMI"
27 -
28 26 /*
29 27 * Hypervisor calls called by glvc driver.
30 28 */
31 29
32 30 #include <sys/asm_linkage.h>
33 31 #include <sys/hypervisor_api.h>
34 32 #include <sys/glvc.h>
35 33
36 -#if defined(lint) || defined(__lint)
37 -
38 -/*ARGSUSED*/
39 -uint64_t
40 -hv_service_recv(uint64_t s_id, uint64_t buf_pa, uint64_t size,
41 - uint64_t *recv_bytes)
42 -{ return (0); }
43 -
44 -/*ARGSUSED*/
45 -uint64_t
46 -hv_service_send(uint64_t s_id, uint64_t buf_pa, uint64_t size,
47 - uint64_t *send_bytes)
48 -{ return (0); }
49 -
50 -/*ARGSUSED*/
51 -uint64_t
52 -hv_service_getstatus(uint64_t s_id, uint64_t *vreg)
53 -{ return (0); }
54 -
55 -/*ARGSUSED*/
56 -uint64_t
57 -hv_service_setstatus(uint64_t s_id, uint64_t bits)
58 -{ return (0); }
59 -
60 -/*ARGSUSED*/
61 -uint64_t
62 -hv_service_clrstatus(uint64_t s_id, uint64_t bits)
63 -{ return (0); }
64 -
65 -#else /* lint || __lint */
66 -
67 34 /*
68 35 * hv_service_recv(uint64_t s_id, uint64_t buf_pa,
69 36 * uint64_t size, uint64_t *recv_bytes);
70 37 */
71 38 ENTRY(hv_service_recv)
72 39 save %sp, -SA(MINFRAME), %sp
73 40 mov %i0, %o0
74 41 mov %i1, %o1
75 42 mov %i2, %o2
76 43 mov %i3, %o3
77 44 mov SVC_RECV, %o5
78 45 ta FAST_TRAP
79 46 brnz %o0, 1f
80 47 mov %o0, %i0
81 48 stx %o1, [%i3]
82 49 1:
83 50 ret
84 51 restore
85 52 SET_SIZE(hv_service_recv)
86 53
87 54 /*
88 55 * hv_service_send(uint64_t s_id, uint64_t buf_pa,
89 56 * uint64_t size, uint64_t *recv_bytes);
90 57 */
91 58 ENTRY(hv_service_send)
92 59 save %sp, -SA(MINFRAME), %sp
93 60 mov %i0, %o0
94 61 mov %i1, %o1
95 62 mov %i2, %o2
96 63 mov %i3, %o3
97 64 mov SVC_SEND, %o5
98 65 ta FAST_TRAP
99 66 brnz %o0, 1f
100 67 mov %o0, %i0
101 68 stx %o1, [%i3]
102 69 1:
103 70 ret
104 71 restore
105 72 SET_SIZE(hv_service_send)
106 73
107 74 /*
108 75 * hv_service_getstatus(uint64_t s_id, uint64_t *vreg);
109 76 */
110 77 ENTRY(hv_service_getstatus)
111 78 mov %o1, %o4 ! save datap
112 79 mov SVC_GETSTATUS, %o5
113 80 ta FAST_TRAP
114 81 brz,a %o0, 1f
115 82 stx %o1, [%o4]
116 83 1:
117 84 retl
118 85 nop
119 86 SET_SIZE(hv_service_getstatus)
120 87
121 88 /*
122 89 * hv_service_setstatus(uint64_t s_id, uint64_t bits);
123 90 */
124 91 ENTRY(hv_service_setstatus)
125 92 mov SVC_SETSTATUS, %o5
126 93 ta FAST_TRAP
127 94 retl
128 95 nop
129 96 SET_SIZE(hv_service_setstatus)
130 97
↓ open down ↓ |
54 lines elided |
↑ open up ↑ |
131 98 /*
132 99 * hv_service_clrstatus(uint64_t s_id, uint64_t bits);
133 100 */
134 101 ENTRY(hv_service_clrstatus)
135 102 mov SVC_CLRSTATUS, %o5
136 103 ta FAST_TRAP
137 104 retl
138 105 nop
139 106 SET_SIZE(hv_service_clrstatus)
140 107
141 -#endif /* lint || __lint */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX