Skip to content

[Bug]: Don't Use Memory Attribute Protocol in Core and Optimize SetMemoryAttributes #1132

@os-d

Description

@os-d

Is there an existing issue for this?

  • I have searched existing issues

Current Behavior

There is an instance of GetMemoryAttributes in DxeCore to avoid calling SetMemoryAttributes if no attributes are different. The memory attribute protocol should only be used by bootloaders or other non-core components. To not lose the performance gain, add smarts to SetMemoryAttribute to only go down the set path if the attributes are not the same.

Expected Behavior

n/a

Steps To Reproduce

n/a

Build Environment

- OS(s):
- Tool Chain(s):
- Targets Impacted:

Version Information

top of tree

Urgency

Low

Are you going to fix this?

I will fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Metadata

Metadata

Assignees

Labels

state:needs-triageNeeds to triaged to determine next stepsstate:staleHas not been updated in a long timetype:bugSomething isn't workingurgency:lowLittle to no impact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions