blob: abe090f37b7340f0cb256a94aea7c31a3dea3ccb (
plain)
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
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by:
and:
- RTEMS_SMP
- bsps/sparc/leon3
links: []
test-actions:
- action-brief: |
The test action is carried out by the wrapped
bsp_start_on_secondary_processor() function.
action-code: |
/* Nothing to do */
checks:
- brief: |
Check that the expected fatal source is present.
code: |
T_step_eq_int( ${.:/step}, ctx->source, RTEMS_FATAL_SOURCE_BSP );
links:
- role: validation
uid: ../req/fatal-cache-snooping-disabled-secondary
- brief: |
Check that the expected fatal code is present.
code: |
T_step_eq_ulong(
${.:/step},
ctx->code,
LEON3_FATAL_INVALID_CACHE_CONFIG_SECONDARY_PROCESSOR
);
links:
- role: validation
uid: ../req/fatal-cache-snooping-disabled-secondary
links: []
test-brief: |
Tests a fatal error.
test-context: []
test-context-support: null
test-description: null
test-header:
code: null
freestanding: true
includes:
- rtems.h
local-includes: []
run-params:
- description: |
is fatal source.
dir: null
name: source
specifier: ${/rtems/userext/if/fatal-source:/name} ${.:name}
- description: |
is fatal code.
dir: null
name: code
specifier: ${/rtems/userext/if/fatal-code:/name} ${.:name}
target: testsuites/validation/tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.h
test-includes:
- bsp/bootcard.h
- bsp/fatal.h
- bsp/leon3.h
test-local-includes:
- tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.h
test-setup: null
test-stop: null
test-support: |
void __real_bsp_start_on_secondary_processor( struct Per_CPU_Control *cpu_self );
void __wrap_bsp_start_on_secondary_processor( struct Per_CPU_Control *cpu_self );
void __wrap_bsp_start_on_secondary_processor( struct Per_CPU_Control *cpu_self )
{
uint32_t control;
control = leon3_get_cache_control_register();
control &= ~LEON3_REG_CACHE_CTRL_DS;
leon3_set_cache_control_register( control );
__real_bsp_start_on_secondary_processor( cpu_self );
}
test-target: testsuites/validation/tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.c
test-teardown: null
type: test-case
|