diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2021-05-26 17:43:14 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-06-01 15:52:01 +0000 |
commit | ea522a12b35852728a5fdbaa484bdb7425402f5b (patch) | |
tree | b74bc8a28c4940c595ba036439acf2bb7c2a375c /ArmPkg | |
parent | a44fef7de3454cb0cb32a65a5fca16bec0b9416d (diff) | |
download | edk2-ea522a12b35852728a5fdbaa484bdb7425402f5b.zip edk2-ea522a12b35852728a5fdbaa484bdb7425402f5b.tar.gz edk2-ea522a12b35852728a5fdbaa484bdb7425402f5b.tar.bz2 |
ArmPkg: Fix ArmGicSendSgiTo() parameters
The Software Generated Interrupt Register (GICD_SGIR) is a 32 bit
register with the following bit assignment:
TargetListFilter, bits [25:24]
CPUTargetList, bits [23:16]
NSATT, bit [15]
SGIINTID, bits [3:0]
Therefore, modify the TargetListFilter, CPUTargetList, SGI Interrupt ID
parameters of the ArmGicSendSgiTo () to use UINT8 instead of INTN.
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Drivers/ArmGic/ArmGicLib.c | 6 | ||||
-rw-r--r-- | ArmPkg/Include/Library/ArmGicLib.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c index 2432715..eca4ddb 100644 --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c @@ -141,9 +141,9 @@ VOID EFIAPI
ArmGicSendSgiTo (
IN UINTN GicDistributorBase,
- IN INTN TargetListFilter,
- IN INTN CPUTargetList,
- IN INTN SgiId
+ IN UINT8 TargetListFilter,
+ IN UINT8 CPUTargetList,
+ IN UINT8 SgiId
)
{
MmioWrite32 (
diff --git a/ArmPkg/Include/Library/ArmGicLib.h b/ArmPkg/Include/Library/ArmGicLib.h index 7253cda..cede7a2 100644 --- a/ArmPkg/Include/Library/ArmGicLib.h +++ b/ArmPkg/Include/Library/ArmGicLib.h @@ -167,9 +167,9 @@ VOID EFIAPI
ArmGicSendSgiTo (
IN UINTN GicDistributorBase,
- IN INTN TargetListFilter,
- IN INTN CPUTargetList,
- IN INTN SgiId
+ IN UINT8 TargetListFilter,
+ IN UINT8 CPUTargetList,
+ IN UINT8 SgiId
);
/*
|