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
9ca516bb
Commit
9ca516bb
authored
Jul 15, 2016
by
danh-arm
Committed by
GitHub
Jul 15, 2016
Browse files
Merge pull request #658 from soby-mathew/sm/init_spi_ppi_gic
GIC: Ensure SGIs and PPIs are Group0 before setup
parents
e254e3fa
47c6876a
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/arm/gic/arm_gic.c
View file @
9ca516bb
/*
* Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014
-2016
, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
...
...
@@ -205,10 +205,14 @@ void arm_gic_pcpu_distif_setup(void)
assert
(
g_irq_sec_ptr
);
sec_ppi_sgi_mask
=
0
;
/* Ensure all SGIs and PPIs are Group0 to begin with */
gicd_write_igroupr
(
g_gicd_base
,
0
,
0
);
for
(
index
=
0
;
index
<
g_num_irqs
;
index
++
)
{
irq_num
=
g_irq_sec_ptr
[
index
];
if
(
irq_num
<
MIN_SPI_ID
)
{
/* We have an SGI or a PPI
. They are Group0 at reset
*/
/* We have an SGI or a PPI */
sec_ppi_sgi_mask
|=
1U
<<
irq_num
;
gicd_set_ipriorityr
(
g_gicd_base
,
irq_num
,
GIC_HIGHEST_SEC_PRIORITY
);
...
...
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