1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
/*
* 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
* or http://www.opensolaris.org/os/licensing.
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/cpu_module.h>
#include <vm/page.h>
#include <vm/seg_map.h>
void
cpu_fiximp(pnode_t dnode)
{}
void
ce_err(void)
{}
void
ce_err_tl1(void)
{}
void
async_err(void)
{}
void
cpu_flush_ecache(void)
{}
void
cpu_disable_errors(void)
{}
/* It could be removed later if prom enables error handling */
void
cpu_enable_errors(void)
{}
/*ARGSUSED*/
void
cpu_faulted_enter(struct cpu *cp)
{}
/*ARGSUSED*/
void
cpu_faulted_exit(struct cpu *cp)
{}
/*ARGSUSED*/
void
cpu_ce_count_unum(struct async_flt *ecc, int len, char *unum)
{}
/*ARGSUSED*/
void
cpu_ce_scrub_mem_err(struct async_flt *ecc, boolean_t triedcpulogout)
{}
/*ARGSUSED*/
void
cpu_ce_log_err(struct async_flt *ecc, errorq_elem_t *eqep)
{}
/*ARGSUSED*/
void
cpu_ue_log_err(struct async_flt *ecc)
{}
/*ARGSUSED*/
int
ce_scrub_xdiag_recirc(struct async_flt *aflt, errorq_t *eqp,
errorq_elem_t *eqep, size_t afltoffset)
{ return (0); }
/*ARGSUSED*/
char *
flt_to_error_type(struct async_flt *aflt)
{ return (NULL); }
int
cpu_aflt_size(void)
{ return (0); }
void
cpu_async_panic_callb(void)
{}
/*ARGSUSED*/
void
cpu_check_allcpus(struct async_flt *aflt)
{}
/*ARGSUSED*/
int
cpu_get_mem_sid(char *unum, char *buf, int buflen, int *lenp)
{ return (ENOTSUP); }
/*ARGSUSED*/
int
cpu_get_mem_offset(uint64_t flt_addr, uint64_t *offp)
{ return (ENOTSUP); }
/*ARGSUSED*/
int
cpu_get_mem_addr(char *unum, char *sid, uint64_t offset,
uint64_t *addrp)
{ return (ENOTSUP); }
/*ARGSUSED*/
int
cpu_get_mem_unum(int synd_stat, ushort_t synd, uint64_t afsr, uint64_t afar,
int cpuid, int flt_in_memory, ushort_t flt_status, char *buf,
int buflen, int *lenp)
{ return (ENOTSUP); }
/*ARGSUSED*/
int
cpu_get_mem_unum_aflt(int synd_stat, struct async_flt *aflt,
char *buf, int buflen, int *lenp)
{ return (ENOTSUP); }
/*ARGSUSED*/
int
cpu_get_cpu_unum(int cpuid, char *buf, int buflen, int *lenp)
{ return (ENOTSUP); }
/*ARGSUSED*/
int
cpu_get_mem_name(uint64_t synd, uint64_t *afsr, uint64_t afar,
char *buf, int buflen, int *lenp)
{ return (ENOTSUP); }
/*ARGSUSED*/
size_t
cpu_get_name_bufsize()
{ return (0); }
/*ARGSUSED*/
int
cpu_get_mem_info(uint64_t synd, uint64_t afar,
uint64_t *mem_sizep, uint64_t *seg_sizep, uint64_t *bank_sizep,
int *segsp, int *banksp, int *mcidp)
{ return (ENOTSUP); }
/*ARGSUSED*/
void
cpu_ereport_post(struct async_flt *aflt)
{}
/*ARGSUSED*/
void
cpu_run_bus_error_handlers(struct async_flt *aflt, int expected)
{}
void
cpu_errorq_dispatch(char *error_class, void *payload, size_t payload_sz,
errorq_t *eqp, uint_t flag)
{}
void
clr_datapath(void)
{}
/*ARGSUSED*/
void
read_ecc_data(struct async_flt *ecc, short verbose, short ce_err)
{}
/*ARGSUSED*/
void
itlb_rd_entry(uint_t entry, tte_t *tte, uint64_t *va_tag)
{}
/*ARGSUSED*/
void
dtlb_rd_entry(uint_t entry, tte_t *tte, uint64_t *va_tag)
{}
/*
* tick operations
*/
void
cpu_clearticknpt(void)
{ }
/*
* Ecache scrub operations
*/
void
cpu_init_cache_scrub(void)
{}
/*ARGSUSED*/
void
cpu_busy_ecache_scrub(struct cpu *cp)
{}
/*ARGSUSED*/
void
cpu_idle_ecache_scrub(struct cpu *cp)
{}
/* ARGSUSED */
void
cpu_check_ce(int flag, uint64_t pa, caddr_t va, uint_t bpp)
{}
/* ARGSUSED */
void
prefetch_page_w(void *pp)
{
#define ECACHE_SUBBLOCKS_PER_PAGE 2
#define ECACHE_SUBBLOCK_SIZE_BYTES 64
#define ECACHE_PAGE_BYTE_MAX \
(ECACHE_SUBBLOCKS_PER_PAGE*ECACHE_SUBBLOCK_SIZE_BYTES+1)
/*
* The following line is intended to cause an error
* whenever the sun4u page_t grows beyond 128
* bytes.
*
* If you get an error here, you'll need to change
* the 'prefetch_page_w' assembly language code
* (see also prefetch_page_w prologue comment)
*/
/*LINTED*/
volatile int garbage[ECACHE_PAGE_BYTE_MAX - sizeof (page_t)];
}
/* ARGSUSED */
void
prefetch_page_r(void *pp)
{
#define ECACHE_SUBBLOCKS_PER_PAGE 2
#define ECACHE_SUBBLOCK_SIZE_BYTES 64
#define ECACHE_PAGE_BYTE_MAX \
(ECACHE_SUBBLOCKS_PER_PAGE*ECACHE_SUBBLOCK_SIZE_BYTES+1)
/*
* The following line is intended to cause an error
* whenever the sun4u page_t grows beyond 128
* bytes.
*
* If you get an error here, you'll need to change
* the 'prefetch_page_r' assembly language code
* (see also prefetch_page_w prologue comment)
*/
/*LINTED*/
volatile int garbage[ECACHE_PAGE_BYTE_MAX - sizeof (page_t)];
}
#ifdef SEGKPM_SUPPORT
#define SMAP_SIZE 80
#else
#define SMAP_SIZE 56
#endif
/* ARGSUSED */
void
prefetch_smap_w(void *smp)
{
/*
* The following lines are intended to cause an error
* whenever the smap object size changes from the current
* size of 48 bytes. If you get an error here, you'll
* need to update the code in the 'prefetch_smap_w' assembly
* language code.
*/
/*LINTED*/
volatile int smap_size_changed [SMAP_SIZE - sizeof (struct smap) + 1];
volatile int smap_size_changed2 [sizeof (struct smap) - SMAP_SIZE + 1];
}
void
kdi_flush_caches(void)
{}
/*ARGSUSED*/
void
mmu_init_kernel_pgsz(struct hat *hat)
{
}
size_t
mmu_get_kernel_lpsize(size_t value)
{
return (value);
}
|