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
0cd5d1d1
Commit
0cd5d1d1
authored
Mar 02, 2021
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Mar 02, 2021
Browse files
Merge "lib/extensions/ras: fix bug of binary search" into integration
parents
ef4c1e19
0b1838a9
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/extensions/ras/ras_common.c
View file @
0cd5d1d1
/*
/*
* Copyright (c) 2018-201
9
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2018-20
2
1, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
...
@@ -139,7 +139,7 @@ static int ras_interrupt_handler(uint32_t intr_raw, uint32_t flags,
...
@@ -139,7 +139,7 @@ static int ras_interrupt_handler(uint32_t intr_raw, uint32_t flags,
assert
(
ras_interrupt_mappings
.
num_intrs
>
0UL
);
assert
(
ras_interrupt_mappings
.
num_intrs
>
0UL
);
start
=
0
;
start
=
0
;
end
=
(
int
)
ras_interrupt_mappings
.
num_intrs
;
end
=
(
int
)
ras_interrupt_mappings
.
num_intrs
-
1
;
while
(
start
<=
end
)
{
while
(
start
<=
end
)
{
mid
=
((
end
+
start
)
/
2
);
mid
=
((
end
+
start
)
/
2
);
if
(
intr_raw
==
ras_inrs
[
mid
].
intr_number
)
{
if
(
intr_raw
==
ras_inrs
[
mid
].
intr_number
)
{
...
...
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