vgic: fix multiple bugs

This commit is contained in:
TuxSH
2019-12-26 00:33:38 +00:00
parent f75f584f2f
commit eda6a8d8d6
2 changed files with 40 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ typedef struct ArmGicV2MaintenanceIntStatRegister {
} ArmGicV2MaintenanceIntStatRegister;
typedef struct ArmGicV2ListRegister {
u32 virtualId : 9;
u32 virtualId : 10;
u32 physicalId : 10; // note: different encoding if hw = 0 (can't represent it in struct)
u32 sbz2 : 3;
u32 priority : 5;