Branch: refs/heads/master
Home: https://github.com/tianocore/edk2-libc
Commit: 93b671275ed676cb6fa15c4dd0d1fcfd9d4101ce
https://github.com/tianocore/edk2-libc/commit/93b671275ed676cb6fa15c4dd0d1fcfd9d4101ce
Author: Jayaprakash, N <[email protected]>
Date: 2024-04-24 (Wed, 24 Apr 2024)
Changed paths:
M AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Modules/edk2module.c
Log Message:
-----------
ek2-libc: wrmsr function available in edk2module is not working as expected
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4745
This commit fixes the issue reported in the BZ4745.
The wrmsr was always writing 0 to the higher 32 bits of the msr register.
This was due to a logical flaw in the code, where the input variable of
type unsigned int was left shitted by 32 bits without explicitly
converting it to a 64 bit value.
The issue is with the below statement.
data = vedx << 32 | veax;
Where the vedx which is an unsigned int, after left shifting by 32 bits
its value will be set to 0. Because of this the higher 32 bits of the MSR
are always set to 0. This has been fixed by this commit.
Cc: Rebecca Cran <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Jayaprakash N <[email protected]>
Signed-off-by: Jayaprakash N <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2-libc/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits