File tree Expand file tree Collapse file tree 3 files changed +14
-34
lines changed Expand file tree Collapse file tree 3 files changed +14
-34
lines changed Original file line number Diff line number Diff line change @@ -373,20 +373,8 @@ fapi_try_exit:
373
373
374
374
int l_result = -1 ;
375
375
376
- // The generated classes in hwp_ffdc_classes.H are not produced to support
377
- // fapi2::variable_buffer.In order to enable the following test the
378
- // parseErrorInfo.pl script must be configured to use variable buffers.
379
- // To enable variable buffer support ensure that the parseErrorInfo_RUN
380
- // macro in import/hwpf/fapi2/tools/parseErrorInfo.mk is defined to
381
- // include the --use-variable-buffers option as shown below.
382
- // $(C1) $$< --use-variable-buffers --output-dir=$$($(GENERATED)_PATH) ...
383
-
384
- // Disable unless parseErrorInfo.pl --use-variable-buffers invoked to
385
- // generate hwp_ffdc_classes.H.
386
-
387
376
do
388
377
{
389
- #if 0
390
378
// get a PROC target for this test.
391
379
TARGETING::Target *l_procTarget = getProcTarget ();
392
380
@@ -494,6 +482,8 @@ fapi_try_exit:
494
482
l_ct = snprintf (
495
483
l_ptr,
496
484
l_remain,
485
+ (i != 0 && i%4 == 0 )?
486
+ " \n\t\t Data[%d]: %X " :
497
487
" , Data[%d]: %X " ,
498
488
i,
499
489
FAPI2_TEST_VARIABLE_BUFFER_VALUE[i]
@@ -536,7 +526,6 @@ fapi_try_exit:
536
526
break ;
537
527
}
538
528
539
- #endif
540
529
l_result = 0 ;
541
530
542
531
}
Original file line number Diff line number Diff line change @@ -41,7 +41,18 @@ const uint64_t FAPI2_TEST_BUFFER_VALUE = 0x123456789ABCDEF;
41
41
const uint32_t FAPI2_TEST_VARIABLE_BUFFER_VALUE [] =
42
42
{
43
43
0x12345678 ,
44
- 0x9ABCDEF
44
+ 0x23456781 ,
45
+ 0x34567812 ,
46
+ 0x45678123 ,
47
+ 0x56781234 ,
48
+ 0x67812345 ,
49
+ 0x78123456 ,
50
+ 0x81234567 ,
51
+ 0x9ABCDEF ,
52
+ 0xABCDEF9 ,
53
+ 0xBCDEF9A ,
54
+ 0xCDEF9AB ,
55
+ 0xDEF9ABC
45
56
};
46
57
const uint32_t VARIABLE_BUFFER_ELEMENTS =
47
58
sizeof (FAPI2_TEST_VARIABLE_BUFFER_VALUE )/
@@ -210,15 +221,6 @@ fapi_try_exit:
210
221
return fapi2 ::current_err ;
211
222
}
212
223
213
- #if 0
214
- //The generated classes in hwp_ffdc_classes.H are not produced to support
215
- //fapi2::variable_buffer.In order to enable the following function the
216
- //parseErrorInfo.pl script must be configured to use variable buffers.
217
- //To enable variable buffer support ensure that the parseErrorInfo_RUN
218
- //macro in import/hwpf/fapi2/tools/parseErrorInfo.mk is defined to
219
- //include the --use-variable-buffers option as shown below.
220
- //$(C1) $$< --use-variable-buffers --output-dir=$$($(GENERATED)_PATH) ...
221
- //
222
224
//****************************************************************************
223
225
// p9ErrorWithVariableBuffer
224
226
// Force an error that will use a caller populated fapi2::variable_buffer
@@ -251,6 +253,5 @@ fapi_try_exit:
251
253
FAPI_INF ("Exiting p9ErrorWithVariableBuffer" );
252
254
return fapi2 ::current_err ;
253
255
}
254
- #endif
255
256
256
257
Original file line number Diff line number Diff line change @@ -92,21 +92,11 @@ fapi2::ReturnCode p9_hwCallout(
92
92
fapi2 ::ReturnCode p9ErrorWithBuffer (
93
93
fapi2 ::Target < fapi2 ::TARGET_TYPE_PROC_CHIP > & i_target );
94
94
95
- #if 0
96
- //The generated classes in hwp_ffdc_classes.H are not produced to support
97
- //fapi2::variable_buffer.In order to enable the following function the
98
- //parseErrorInfo.pl script must be configured to use variable buffers.
99
- //To enable variable buffer support ensure that the parseErrorInfo_RUN
100
- //macro in import/hwpf/fapi2/tools/parseErrorInfo.mk is defined to
101
- //include the --use-variable-buffers option as shown below.
102
- //$(C1) $$< --use-variable-buffers --output-dir=$$($(GENERATED)_PATH) ...
103
-
104
95
//*****************************************************************************
105
96
// p9ErrorWithVariableBuffer
106
97
// Force an error that will use a caller populated fapi2::variable_buffer
107
98
//*****************************************************************************
108
99
fapi2 ::ReturnCode p9ErrorWithVariableBuffer (
109
100
fapi2 ::Target < fapi2 ::TARGET_TYPE_PROC_CHIP > & i_target );
110
- #endif
111
101
112
102
#endif
You can’t perform that action at this time.
0 commit comments