]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c
ArmPlatformPkg: Actually disable PL031 interrupts
authorAlexander Graf <graf@amazon.com>
Wed, 10 Jul 2019 14:53:11 +0000 (16:53 +0200)
committerLeif Lindholm <leif.lindholm@linaro.org>
Wed, 10 Jul 2019 17:07:31 +0000 (18:07 +0100)
commit8df52631e53c73cbe5ef037155cc5b6bdc87f757
treee724aa7fe11bcde21eaddce0cfa2cea80d15c093
parent7365eb2c8cf1d7112330d09918c0c67e8d0b827a
ArmPlatformPkg: Actually disable PL031 interrupts

The PL031 interrupt mask register (IMSC) is not very clearly documented
in the PL031 specification. However, bit 0 (RTCIMSC) indicates whether
interrupts are enabled, not disabled.

So before this commit, we were actually *enabling* interrupts for the RTC.

This patch changes the logic to instead disable interrupts when they
are not disabled already.

Signed-off-by: Alexander Graf <graf@amazon.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c