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
63ad1ef4
Commit
63ad1ef4
authored
Jul 28, 2016
by
danh-arm
Committed by
GitHub
Jul 28, 2016
Browse files
Merge pull request #672 from soby-mathew/sm/irouter_offset
GICv3: Fix the GICD_IROUTER offset
parents
405f42f9
61e30277
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/arm/gic/v3/gicv3_private.h
View file @
63ad1ef4
...
...
@@ -141,6 +141,7 @@ static inline unsigned int gicd_read_pidr2(uintptr_t base)
static
inline
unsigned
long
long
gicd_read_irouter
(
uintptr_t
base
,
unsigned
int
id
)
{
assert
(
id
>=
MIN_SPI_ID
);
return
mmio_read_64
(
base
+
GICD_IROUTER
+
(
id
<<
3
));
}
...
...
@@ -148,6 +149,7 @@ static inline void gicd_write_irouter(uintptr_t base,
unsigned
int
id
,
unsigned
long
long
affinity
)
{
assert
(
id
>=
MIN_SPI_ID
);
mmio_write_64
(
base
+
GICD_IROUTER
+
(
id
<<
3
),
affinity
);
}
...
...
include/drivers/arm/gicv3.h
View file @
63ad1ef4
...
...
@@ -55,7 +55,11 @@
#define GICD_SETSPI_SR 0x50
#define GICD_CLRSPI_SR 0x50
#define GICD_IGRPMODR 0xd00
#define GICD_IROUTER 0x6100
/*
* GICD_IROUTER<n> register is at 0x6000 + 8n, where n is the interrupt id and
* n >= 32, making the effective offset as 0x6100.
*/
#define GICD_IROUTER 0x6000
#define GICD_PIDR2_GICV3 0xffe8
#define IGRPMODR_SHIFT 5
...
...
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