Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED ARM trusted-firmware Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
KED ARM trusted-firmware Fork
Commits
cc392dd8
Commit
cc392dd8
authored
4 years ago
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix casting bug in gicv2_main.c" into integration
parents
e180cdba
20d38497
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/arm/gic/v2/gicv2_main.c
+9
-7
9 additions, 7 deletions
drivers/arm/gic/v2/gicv2_main.c
with
9 additions
and
7 deletions
drivers/arm/gic/v2/gicv2_main.c
+
9
−
7
View file @
cc392dd8
/*
* Copyright (c) 2015-20
18
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-20
20
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -296,8 +296,8 @@ void gicv2_set_pe_target_mask(unsigned int proc_num)
assert
(
driver_data
!=
NULL
);
assert
(
driver_data
->
gicd_base
!=
0U
);
assert
(
driver_data
->
target_masks
!=
NULL
);
assert
(
(
unsigned
int
)
proc_num
<
GICV2_MAX_TARGET_PE
);
assert
(
(
unsigned
int
)
proc_num
<
driver_data
->
target_masks_num
);
assert
(
proc_num
<
GICV2_MAX_TARGET_PE
);
assert
(
proc_num
<
driver_data
->
target_masks_num
);
/* Return if the target mask is already populated */
if
(
driver_data
->
target_masks
[
proc_num
]
!=
0U
)
...
...
@@ -422,7 +422,8 @@ void gicv2_raise_sgi(int sgi_num, int proc_num)
unsigned
int
sgir_val
,
target
;
assert
(
driver_data
!=
NULL
);
assert
((
unsigned
int
)
proc_num
<
GICV2_MAX_TARGET_PE
);
assert
(
proc_num
>=
0
);
assert
(
proc_num
<
(
int
)
GICV2_MAX_TARGET_PE
);
assert
(
driver_data
->
gicd_base
!=
0U
);
/*
...
...
@@ -430,7 +431,7 @@ void gicv2_raise_sgi(int sgi_num, int proc_num)
* should be valid.
*/
assert
(
driver_data
->
target_masks
!=
NULL
);
assert
(
(
unsigned
int
)
proc_num
<
driver_data
->
target_masks_num
);
assert
(
proc_num
<
(
int
)
driver_data
->
target_masks_num
);
/* Don't raise SGI if the mask hasn't been populated */
target
=
driver_data
->
target_masks
[
proc_num
];
...
...
@@ -466,8 +467,9 @@ void gicv2_set_spi_routing(unsigned int id, int proc_num)
* should be valid.
*/
assert
(
driver_data
->
target_masks
!=
NULL
);
assert
((
unsigned
int
)
proc_num
<
GICV2_MAX_TARGET_PE
);
assert
((
unsigned
int
)
proc_num
<
driver_data
->
target_masks_num
);
assert
(
proc_num
<
(
int
)
GICV2_MAX_TARGET_PE
);
assert
(
driver_data
->
target_masks_num
<
INT_MAX
);
assert
(
proc_num
<
(
int
)
driver_data
->
target_masks_num
);
if
(
proc_num
<
0
)
{
/* Target all PEs */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment