Hi All,

My name is Przemysław Gierszyński and I work as a Firmware Engineer in Intel 
Technology Poland.
I was doing some work that required review of some parts of EDK2 and I think I 
have found a small bug in ArmPkg module.
Here below are some details concerning the issue:
File: edk2/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
Function: TimerContructor ( VOID ) - line 56
Description:
The comment above says: "If the security extension is not implemented, set 
Timer Frequency here.".
In releases from the past in the if condition there was direct accessing to 
ID_PFR1, and it was changed in the commit shown below.
[cid:image001.png@01D93185.A4DC9070]
But if we go into the body of the ArmHasSecurityExtensions () function, we can 
see that the result of the function is a negation of the condition from the 
past:
[cid:image002.png@01D93186.59443040]

Proposal of solution:
Change the if condition in TimerContructor () function from: if 
(ArmHasSecurityExtensions ()) to if (!ArmHasSecurityExtensions ())

Thank you for your help!

Best regards
Przemek

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial 
Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | 
Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z 
dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach 
handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i 
moze zawierac informacje poufne. W razie przypadkowego otrzymania tej 
wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; 
jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient(s). If you are not the intended recipient, please 
contact the sender and delete all copies; any review or distribution by others 
is strictly prohibited.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99091): https://edk2.groups.io/g/devel/message/99091
Mute This Topic: https://groups.io/mt/96551253/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to