mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
arch: gic: Change restoring order of GICR register
If GICR_CTLR is restored before GICR_PROPBASER and GICR_PENDBASER, the restoring of the latter registers will fail, as the LPI enable bit is already set in GICR_CTLR. Therefore, in this commit, the order of restoring GICR registers is changed. Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
parent
4da3bdcd6e
commit
8744162a0e
@ -62,11 +62,11 @@ macro_rules! VGIC_RDIST_REG {
|
|||||||
|
|
||||||
// List with relevant distributor registers that we will be restoring.
|
// List with relevant distributor registers that we will be restoring.
|
||||||
static VGIC_RDIST_REGS: &'static [RdistReg] = &[
|
static VGIC_RDIST_REGS: &'static [RdistReg] = &[
|
||||||
VGIC_RDIST_REG!(GICR_CTLR, 4),
|
|
||||||
VGIC_RDIST_REG!(GICR_STATUSR, 4),
|
VGIC_RDIST_REG!(GICR_STATUSR, 4),
|
||||||
VGIC_RDIST_REG!(GICR_WAKER, 4),
|
VGIC_RDIST_REG!(GICR_WAKER, 4),
|
||||||
VGIC_RDIST_REG!(GICR_PROPBASER, 8),
|
VGIC_RDIST_REG!(GICR_PROPBASER, 8),
|
||||||
VGIC_RDIST_REG!(GICR_PENDBASER, 8),
|
VGIC_RDIST_REG!(GICR_PENDBASER, 8),
|
||||||
|
VGIC_RDIST_REG!(GICR_CTLR, 4),
|
||||||
];
|
];
|
||||||
|
|
||||||
// List with relevant distributor registers that we will be restoring.
|
// List with relevant distributor registers that we will be restoring.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user