Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MdePkg/BaseFdtLib: Rename standard functions #61

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jbrasen
Copy link
Contributor

@jbrasen jbrasen commented Dec 7, 2023

Rename the standard functions in the LibFdtSupport to remove conflicts with other libraries that define them.

Jira TEGRAUEFI-3105

Change-Id: Ib0683a29f9aeb7e9c7fa179e9d495c3e979f1261

@jbrasen jbrasen added Pending EDK2 Review EDK2 maintainer review needed Pending EDK2 merge Change is not in tianocore/master Pending EDK2 stable release Change is not in most recent edk2-stable tag labels Dec 11, 2023
Javagedes and others added 5 commits January 23, 2024 16:04
The UncrustifyCheck plugin passes os.stat.S_IWRITE to os.chmod, when
attempting to change file permissions. os.stat.S_IWRITE does not exist
as os.stat is a function. The correct value is stat.S_IWRITE.

Signed-off-by: Joey Vagedes <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Sean Brogan <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
The current dependency evaluator violates the memory access permission
when patching depex grammar directly in the read-only depex memory area.

Laszlo pointed out the optimization issue in the thread (1) "Memory
Attribute for depex section" and provided suggested patch to remove the
perf optimization.

In my testing, removing the optimization does not make significant perf
reduction. That makes sense that StandaloneMM dispatcher only searches
in MM protocol database and does not depend on UEFI/DXE protocol
database. Also, we don't have many protocols in StandaloneMM like
UEFI/DXE.

From Laszlo,

"The patch removes the EFI_DEP_REPLACE_TRUE handling altogether, plus it
CONST-ifies the Iterator pointer (which points into the DEPEX section),
so that the compiler catch any possible accesses at *build time* that
would write to the write-protected DEPEX memory area."

(1) https://edk2.groups.io/g/devel/message/113531

Signed-off-by: Nhi Pham <[email protected]>
Tested-by: levi.yun <[email protected]>
Reviewed-by: levi.yun <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Add the description of EFI_FILE_INFO FileName[1] field to align
with UEFI spec 2.10 Section 13.5.16.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Signed-off-by: Suqiang Ren <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
CpuLib.h exposes StandardSignatureIsAuthenticAMD() API and we require
stub function in its BaseCpuLibNull library instance to avoid potential
link issue.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Signed-off-by: Qing Huang <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
Rename the standard functions in the LibFdtSupport to remove conflicts
with other libraries that define them.

Jira TEGRAUEFI-3105

Signed-off-by: Jeff Brasen <[email protected]>
Change-Id: Ib0683a29f9aeb7e9c7fa179e9d495c3e979f1261
@jbrasen jbrasen force-pushed the Upstream/FdtStandardFunctions branch from e65749c to 117b184 Compare January 23, 2024 23:15
@jbrasen jbrasen removed Pending EDK2 Review EDK2 maintainer review needed Pending EDK2 merge Change is not in tianocore/master labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending EDK2 stable release Change is not in most recent edk2-stable tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants