]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-proprietary-open.git/blob - omap5/sgx_src/eurasia_km/services4/srvkm/hwdefs/sgxerrata.h
jacinto6: sgx: add memtrack library
[android-sdk/device-ti-proprietary-open.git] / omap5 / sgx_src / eurasia_km / services4 / srvkm / hwdefs / sgxerrata.h
1 /*************************************************************************/ /*!
2 @Title          SGX HW errata definitions
3 @Copyright      Copyright (c) Imagination Technologies Ltd. All Rights Reserved
4 @Description    Specifies associations between SGX core revisions
5                 and SW workarounds required to fix HW errata that exist
6                 in specific core revisions
7 @License        Dual MIT/GPLv2
9 The contents of this file are subject to the MIT license as set out below.
11 Permission is hereby granted, free of charge, to any person obtaining a copy
12 of this software and associated documentation files (the "Software"), to deal
13 in the Software without restriction, including without limitation the rights
14 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 copies of the Software, and to permit persons to whom the Software is
16 furnished to do so, subject to the following conditions:
18 The above copyright notice and this permission notice shall be included in
19 all copies or substantial portions of the Software.
21 Alternatively, the contents of this file may be used under the terms of
22 the GNU General Public License Version 2 ("GPL") in which case the provisions
23 of GPL are applicable instead of those above.
25 If you wish to allow use of your version of this file only under the terms of
26 GPL, and not to allow others to use your version of this file under the terms
27 of the MIT license, indicate your decision by deleting the provisions above
28 and replace them with the notice and other provisions required by GPL as set
29 out in the file called "GPL-COPYING" included in this distribution. If you do
30 not delete the provisions above, a recipient may use your version of this file
31 under the terms of either the MIT license or GPL.
33 This License is also included in this distribution in the file called
34 "MIT-COPYING".
36 EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
37 PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
38 BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
39 PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
40 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
41 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
42 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43 */ /**************************************************************************/
44 #ifndef _SGXERRATA_KM_H_
45 #define _SGXERRATA_KM_H_
47 /* ignore warnings about unrecognised preprocessing directives in conditional inclusion directives */
48 /* PRQA S 3115 ++ */
50 #if defined(SGX520) && !defined(SGX_CORE_DEFINED)
51         /* define the _current_ SGX520 RTL head revision */
52         #define SGX_CORE_REV_HEAD       0
53         #if defined(USE_SGX_CORE_REV_HEAD)
54                 /* build config selects Core Revision to be the Head */
55                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
56         #endif
58         #if SGX_CORE_REV == 111
59         #else
60         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
61                 /* RTL head - no BRNs to apply */
62         #else
63                 #error "sgxerrata.h: SGX520 Core Revision unspecified"
64         #endif
65         #endif
66         /* signal that the Core Version has a valid definition */
67         #define SGX_CORE_DEFINED
68 #endif
70 #if defined(SGX530) && !defined(SGX_CORE_DEFINED)
71         /* define the _current_ SGX530 RTL head revision */
72         #define SGX_CORE_REV_HEAD       0
73         #if defined(USE_SGX_CORE_REV_HEAD)
74                 /* build config selects Core Revision to be the Head */
75                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
76         #endif
78         #if SGX_CORE_REV == 120
79                 #define FIX_HW_BRN_22934/* Workaround in sgx featuredefs */     
80                 #define FIX_HW_BRN_28889/* Workaround in services (srvkm) */
81         #else
82         #if SGX_CORE_REV == 121
83                 #define FIX_HW_BRN_22934/* Workaround in sgx featuredefs */     
84                 #define FIX_HW_BRN_28889/* Workaround in services (srvkm) */
85         #else
86         #if SGX_CORE_REV == 125
87                 #define FIX_HW_BRN_22934/* Workaround in sgx featuredefs */     
88                 #define FIX_HW_BRN_28889/* Workaround in services (srvkm) */
89         #else
90         #if SGX_CORE_REV == 130
91                 #define FIX_HW_BRN_22934/* Workaround in sgx featuredefs */     
92                 #define FIX_HW_BRN_28889/* Workaround in services (srvkm) */
93         #else
94         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
95                 /* RTL head - no BRNs to apply */
96         #else
97                 #error "sgxerrata.h: SGX530 Core Revision unspecified"
98         #endif
99         #endif
100         #endif
101 #endif
102         #endif
103         /* signal that the Core Version has a valid definition */
104         #define SGX_CORE_DEFINED
105 #endif
107 #if defined(SGX531) && !defined(SGX_CORE_DEFINED)
108         /* define the _current_ SGX531 RTL head revision */
109         #define SGX_CORE_REV_HEAD       0
110         #if defined(USE_SGX_CORE_REV_HEAD)
111                 /* build config selects Core Revision to be the Head */
112                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
113         #endif
115         #if SGX_CORE_REV == 101
116                 #define FIX_HW_BRN_26620/* Workaround in services (srvkm) */
117                 #define FIX_HW_BRN_28011/* Workaround in services (srvkm) */
118                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
119         #else
120         #if SGX_CORE_REV == 110
121                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
122         #else
123         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
124                 /* RTL head - no BRNs to apply */
125         #else
126                 #error "sgxerrata.h: SGX531 Core Revision unspecified"
127         #endif
128         #endif
129         #endif
130         /* signal that the Core Version has a valid definition */
131         #define SGX_CORE_DEFINED
132 #endif
134 #if (defined(SGX535) || defined(SGX535_V1_1)) && !defined(SGX_CORE_DEFINED)
135         /* define the _current_ SGX535 RTL head revision */
136         #define SGX_CORE_REV_HEAD       0
137         #if defined(USE_SGX_CORE_REV_HEAD)
138                 /* build config selects Core Revision to be the Head */
139                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
140         #endif
142         #if SGX_CORE_REV == 121
143                 #define FIX_HW_BRN_22934/* Workaround in sgx featuredefs */     
144                 #define FIX_HW_BRN_23944/* Workaround in code (services) */
145                 #define FIX_HW_BRN_23410/* Workaround in code (services) and ucode */
146         #else
147         #if SGX_CORE_REV == 126
148                 #define FIX_HW_BRN_22934/* Workaround in sgx featuredefs */     
149         #else   
150         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
151                 /* RTL head - no BRNs to apply */
152         #else
153                 #error "sgxerrata.h: SGX535 Core Revision unspecified"
155         #endif
156         #endif
157         #endif
158         /* signal that the Core Version has a valid definition */
159         #define SGX_CORE_DEFINED
160 #endif
162 #if defined(SGX540) && !defined(SGX_CORE_DEFINED)
163         /* define the _current_ SGX540 RTL head revision */
164         #define SGX_CORE_REV_HEAD       0
165         #if defined(USE_SGX_CORE_REV_HEAD)
166                 /* build config selects Core Revision to be the Head */
167                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
168         #endif
170         #if SGX_CORE_REV == 101
171                 #define FIX_HW_BRN_25499/* Workaround in sgx featuredefs */
172                 #define FIX_HW_BRN_25503/* Workaround in code (services) */
173                 #define FIX_HW_BRN_26620/* Workaround in services (srvkm) */
174                 #define FIX_HW_BRN_28011/* Workaround in services (srvkm) */
175                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
176         #else
177         #if SGX_CORE_REV == 110
178                 #define FIX_HW_BRN_25503/* Workaround in code (services) */
179                 #define FIX_HW_BRN_26620/* Workaround in services (srvkm) */
180                 #define FIX_HW_BRN_28011/* Workaround in services (srvkm) */
181                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
182         #else
183         #if SGX_CORE_REV == 120
184                 #define FIX_HW_BRN_26620/* Workaround in services (srvkm) */
185                 #define FIX_HW_BRN_28011/* Workaround in services (srvkm) */
186                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
187         #else
188         #if SGX_CORE_REV == 121
189                 #define FIX_HW_BRN_28011/* Workaround in services (srvkm) */
190                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
191         #else
192         #if SGX_CORE_REV == 130
193                 #define FIX_HW_BRN_34028/* Workaround in services (srvkm) */
194         #else
195         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
196                 /* RTL head - no BRNs to apply */
197         #else
198                 #error "sgxerrata.h: SGX540 Core Revision unspecified"
199         #endif
200         #endif
201         #endif
202         #endif
203         #endif
204         #endif
205         /* signal that the Core Version has a valid definition */
206         #define SGX_CORE_DEFINED
207 #endif
210 #if defined(SGX543) && !defined(SGX_CORE_DEFINED)
211         /* define the _current_ SGX543 RTL head revision */
212         #define SGX_CORE_REV_HEAD       0
213         #if defined(USE_SGX_CORE_REV_HEAD)
214                 /* build config selects Core Revision to be the Head */
215                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
216         #endif
218         #if SGX_CORE_REV == 122
219                 #define FIX_HW_BRN_29954/* turns off regbank split feature */
220                 #define FIX_HW_BRN_29997/* workaround in services */
221                 #define FIX_HW_BRN_30954/* workaround in services */
222                 #define FIX_HW_BRN_31093/* workaround in services */
223                 #define FIX_HW_BRN_31195/* workaround in services */
224                 #define FIX_HW_BRN_31272/* workaround in services (srvclient) and uKernel */
225                 #define FIX_HW_BRN_31278/* disabled prefetching in MMU */
226                 #define FIX_HW_BRN_31542/* workaround in uKernel and Services */
227                 #if defined(SGX_FEATURE_MP)
228                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
229                 #endif
230                 #define FIX_HW_BRN_31620/* workaround in services */
231                 #define FIX_HW_BRN_31780/* workaround in uKernel */
232                 #define FIX_HW_BRN_32044 /* workaround in uKernel, services and client drivers */
233                 #define FIX_HW_BRN_32085 /* workaround in services: prefetch fix applied, investigating PT based fix */
234                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
235                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
236                 #endif
237                 #define FIX_HW_BRN_33920/* workaround in ukernel */
238                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
239                         /* add BRNs here */
240         #else
241         #if SGX_CORE_REV == 1221
242                 #define FIX_HW_BRN_29954/* turns off regbank split feature */
243         #define FIX_HW_BRN_31195/* workaround in services */
244                 #define FIX_HW_BRN_31272/* workaround in services (srvclient) and uKernel */
245                 #define FIX_HW_BRN_31278/* disabled prefetching in MMU */
246                 #if defined(SGX_FEATURE_MP)
247                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
248                 #endif
249                 #define FIX_HW_BRN_31542/* workaround in uKernel and Services */
250                 #define FIX_HW_BRN_31671/* workaround in uKernel */             
251                 #define FIX_HW_BRN_31780/* workaround in uKernel */
252                 #define FIX_HW_BRN_32044/* workaround in uKernel, services and client drivers */
253                 #define FIX_HW_BRN_32085 /* workaround in services: prefetch fix applied, investigating PT based fix */
254                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
255                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
256                 #endif
257                 #define FIX_HW_BRN_33920/* workaround in ukernel */
258                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
259                         /* add BRNs here */
260         #else
261         #if SGX_CORE_REV == 141
262                 #define FIX_HW_BRN_29954/* turns off regbank split feature */
263                 #if defined(SGX_FEATURE_MP)
264                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
265                 #endif
266                 #define FIX_HW_BRN_31671 /* workaround in uKernel */
267                 #define FIX_HW_BRN_31780/* workaround in uKernel */
268                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
269                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
270                 #endif
271                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
272                         /* add BRNs here */
273         #else
274         #if SGX_CORE_REV == 142
275                 #define FIX_HW_BRN_29954/* turns off regbank split feature */
276                 #if defined(SGX_FEATURE_MP)
277                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
278                 #endif
279                 #define FIX_HW_BRN_31671 /* workaround in uKernel */
280                 #define FIX_HW_BRN_31780/* workaround in uKernel */
281                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
282                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
283                 #endif
284                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
285                         /* add BRNs here */
286         #else
287         #if SGX_CORE_REV == 2111
288                 #define FIX_HW_BRN_30982 /* workaround in uKernel and services */
289                 #define FIX_HW_BRN_31093/* workaround in services */
290                 #define FIX_HW_BRN_31195/* workaround in services */
291                 #define FIX_HW_BRN_31272/* workaround in services (srvclient) and uKernel */
292                 #define FIX_HW_BRN_31278/* disabled prefetching in MMU */
293                 #define FIX_HW_BRN_31542/* workaround in uKernel and Services */
294                 #if defined(SGX_FEATURE_MP)
295                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
296                 #endif
297                 #define FIX_HW_BRN_31620/* workaround in services */
298                 #define FIX_HW_BRN_31780/* workaround in uKernel */
299                 #define FIX_HW_BRN_32044 /* workaround in uKernel, services and client drivers */
300                 #define FIX_HW_BRN_32085 /* workaround in services: prefetch fix applied, investigating PT based fix */
301                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
302                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
303                 #endif
304                 #define FIX_HW_BRN_33920/* workaround in ukernel */
305                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
306                         /* add BRNs here */
307         #else
308         #if SGX_CORE_REV == 213
309                 #define FIX_HW_BRN_31272/* workaround in services (srvclient) and uKernel */
310                 #if defined(SGX_FEATURE_MP)
311                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
312                 #endif
313                 #define FIX_HW_BRN_31671 /* workaround in uKernel */
314                 #define FIX_HW_BRN_31780/* workaround in uKernel */
315                 #define FIX_HW_BRN_32085 /* workaround in services: prefetch fix applied, investigating PT based fix */
316                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
317                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
318                 #endif
319                 #define FIX_HW_BRN_33920/* workaround in ukernel */
320                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
321                         /* add BRNs here */
322         #else
323         #if SGX_CORE_REV == 216
324                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
325                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
326                 #endif
327                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
328         #else
329         #if SGX_CORE_REV == 302
330                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
331                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
332                 #endif
333         #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
334         #else
335         #if SGX_CORE_REV == 303
336                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
337                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
338                 #endif
339         #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
340         #else
341         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
342                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
343                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
344                 #endif
345         #else
346                 #error "sgxerrata.h: SGX543 Core Revision unspecified"
347         #endif
348         #endif
349         #endif
350         #endif
351         #endif
352         #endif
353         #endif
354         #endif
355         #endif
356         #endif
357         /* signal that the Core Version has a valid definition */
358         #define SGX_CORE_DEFINED
359 #endif
361 #if defined(SGX544) && !defined(SGX_CORE_DEFINED)
362         /* define the _current_ SGX544 RTL head revision */
363         #define SGX_CORE_REV_HEAD       0
364         #if defined(USE_SGX_CORE_REV_HEAD)
365                 /* build config selects Core Revision to be the Head */
366                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
367         #endif
369         #if SGX_CORE_REV == 104
370                 #define FIX_HW_BRN_29954/* turns off regbank split feature */
371                 #define FIX_HW_BRN_31093/* workaround in services */
372                 #define FIX_HW_BRN_31195/* workaround in services */
373                 #define FIX_HW_BRN_31272/* workaround in services (srvclient) and uKernel */
374                 #define FIX_HW_BRN_31278/* disabled prefetching in MMU */
375                 #if defined(SGX_FEATURE_MP)
376                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
377                 #endif
378                 #define FIX_HW_BRN_31542 /* workaround in uKernel and Services */
379                 #define FIX_HW_BRN_31620/* workaround in services */
380                 #define FIX_HW_BRN_31671 /* workaround in uKernel */
381                 #define FIX_HW_BRN_31780/* workaround in uKernel */
382                 #define FIX_HW_BRN_32044 /* workaround in uKernel, services and client drivers */
383                 #define FIX_HW_BRN_32085 /* workaround in services: prefetch fix applied, investigating PT based fix */
384                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
385                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
386                 #endif
387                 #define FIX_HW_BRN_33920/* workaround in ukernel */
388                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
389         #else   
390         #if SGX_CORE_REV == 105
391                 #if defined(SGX_FEATURE_MP)
392                         #define FIX_HW_BRN_31559/* workaround in services and uKernel */
393                 #endif
394                 #define FIX_HW_BRN_31780/* workaround in uKernel */
395                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
396                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
397                 #endif
398                 #define FIX_HW_BRN_33920/* workaround in ukernel */
399                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
400         #else
401         #if SGX_CORE_REV == 112
402                 #define FIX_HW_BRN_31272/* workaround in services (srvclient) and uKernel */
403                 #define FIX_HW_BRN_33920/* workaround in ukernel */
404                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
405         #else
406         #if SGX_CORE_REV == 114
407                 #define FIX_HW_BRN_31780/* workaround in uKernel */
408                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
409                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
410                 #endif
411         #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
412         #else
413         #if SGX_CORE_REV == 115
414                 #define FIX_HW_BRN_31780/* workaround in uKernel */
415                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
416                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
417                 #endif
418                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
419         #else
420         #if SGX_CORE_REV == 116
421                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
422                         #define FIX_HW_BRN_33657/* workaround in ukernel */
423                 #endif
424                 //FIXME: This causes DMM/EMIF lockup
425                 //#define FIX_HW_BRN_33809/* workaround in kernel (enable burst combiner) */
426                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
427         #else
428         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
429                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
430                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
431                 #endif
432         #else
433                 #error "sgxerrata.h: SGX544 Core Revision unspecified"
434         #endif
435         #endif
436         #endif
437         #endif
438         #endif
439         #endif
440         #endif
441         /* signal that the Core Version has a valid definition */
442         #define SGX_CORE_DEFINED
443 #endif
445 #if defined(SGX545) && !defined(SGX_CORE_DEFINED)
446         /* define the _current_ SGX545 RTL head revision */
447         #define SGX_CORE_REV_HEAD       0
448         #if defined(USE_SGX_CORE_REV_HEAD)
449                 /* build config selects Core Revision to be the Head */
450                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
451         #endif
453         #if SGX_CORE_REV == 109
454                 #define FIX_HW_BRN_29702/* Workaround in services */
455                 #define FIX_HW_BRN_29823/* Workaround in services */
456                 #define FIX_HW_BRN_31939/* workaround in uKernel */
457         #else
458         #if SGX_CORE_REV == 10131
459         #else
460         #if SGX_CORE_REV == 1014
461         #else
462         #if SGX_CORE_REV == 10141
463         #else
464         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
465                 /* RTL head - no BRNs to apply */
466         #else
467                 #error "sgxerrata.h: SGX545 Core Revision unspecified"
468         #endif
469         #endif
470         #endif
471         #endif
472         #endif
473         /* signal that the Core Version has a valid definition */
474         #define SGX_CORE_DEFINED
475 #endif
477 #if defined(SGX554) && !defined(SGX_CORE_DEFINED)
478         /* define the _current_ SGX554 RTL head revision */
479         #define SGX_CORE_REV_HEAD       0
480         #if defined(USE_SGX_CORE_REV_HEAD)
481                 /* build config selects Core Revision to be the Head */
482                 #define SGX_CORE_REV    SGX_CORE_REV_HEAD
483         #endif
485         #if SGX_CORE_REV == 1251
486                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
487                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
488                 #endif
489                 #define FIX_HW_BRN_36513 /* workaround in uKernel and Services */
490                 /* add BRNs here */
491         #else   
492         #if SGX_CORE_REV == SGX_CORE_REV_HEAD
493                 #if defined(SUPPORT_SGX_LOW_LATENCY_SCHEDULING) && defined(SGX_FEATURE_MP)
494                         #define FIX_HW_BRN_33657/* workaround in ukernel*/
495                 #endif
496         #else
497                 #error "sgxerrata.h: SGX554 Core Revision unspecified"
498         #endif
499         #endif
500         /* signal that the Core Version has a valid definition */
501         #define SGX_CORE_DEFINED
502 #endif
504 #if !defined(SGX_CORE_DEFINED)
505 #if defined (__GNUC__)
506         #warning "sgxerrata.h: SGX Core Version unspecified"
507 #else
508         #pragma message("sgxerrata.h: SGX Core Version unspecified")
509 #endif
510 #endif
512 /* restore warning */
513 /* PRQA S 3115 -- */
515 #endif /* _SGXERRATA_KM_H_ */
517 /******************************************************************************
518  End of file (sgxerrata.h)
519 ******************************************************************************/