mu_basecore icon indicating copy to clipboard operation
mu_basecore copied to clipboard

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

Open os-d opened this issue 5 months ago • 0 comments

Is there an existing issue for this?

  • [X] 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

os-d avatar Sep 03 '24 22:09 os-d