Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
c5c64dd6
Commit
c5c64dd6
authored
Dec 08, 2014
by
danh-arm
Browse files
Merge pull request #224 from soby-mathew/sm/fix_mpidr_aff_map_nodes_t
Fix the array size of mpidr_aff_map_nodes_t.
parents
435cdcf4
235585b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/lib/aarch64/arch.h
View file @
c5c64dd6
...
@@ -61,7 +61,11 @@
...
@@ -61,7 +61,11 @@
#define MPIDR_AFFLVL1 1
#define MPIDR_AFFLVL1 1
#define MPIDR_AFFLVL2 2
#define MPIDR_AFFLVL2 2
#define MPIDR_AFFLVL3 3
#define MPIDR_AFFLVL3 3
/* TODO: Support only the first 3 affinity levels for now */
/*
* The MPIDR_MAX_AFFLVL count starts from 0. Take care to
* add one while using this macro to define array sizes.
* TODO: Support only the first 3 affinity levels for now.
*/
#define MPIDR_MAX_AFFLVL 2
#define MPIDR_MAX_AFFLVL 2
/* Constant to highlight the assumption that MPIDR allocation starts from 0 */
/* Constant to highlight the assumption that MPIDR allocation starts from 0 */
...
...
services/std_svc/psci/psci_private.h
View file @
c5c64dd6
...
@@ -60,7 +60,7 @@ typedef struct aff_limits_node {
...
@@ -60,7 +60,7 @@ typedef struct aff_limits_node {
int
max
;
int
max
;
}
aff_limits_node_t
;
}
aff_limits_node_t
;
typedef
aff_map_node_t
(
*
mpidr_aff_map_nodes_t
[
MPIDR_MAX_AFFLVL
]);
typedef
aff_map_node_t
(
*
mpidr_aff_map_nodes_t
[
MPIDR_MAX_AFFLVL
+
1
]);
typedef
unsigned
int
(
*
afflvl_power_on_finisher_t
)(
aff_map_node_t
*
);
typedef
unsigned
int
(
*
afflvl_power_on_finisher_t
)(
aff_map_node_t
*
);
/*******************************************************************************
/*******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment