diff options
author | Crystal Lee <CrystalLee@ami.com> | 2024-07-22 14:19:51 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-13 03:08:41 +0000 |
commit | 96390bb8a51519a0dc564a63186d4955f2521459 (patch) | |
tree | a322f3760139bda750840f1bc285bc7a5c24d6ec | |
parent | efaa102d006f242da52a17c81d824a5377da284b (diff) | |
download | edk2-96390bb8a51519a0dc564a63186d4955f2521459.tar.gz |
UefiCpuPkg: Update return status to follow spec
SplitPage may return OUT_OF_RESOURCES if no memory resource to split
page entry. ConvertMemoryPageAttributes should also return
OUT_OF_RESOURCES instead of override the status to UNSUPPORTED.
Then EfiSetMemoryAttributes and EfiClearMemoryAttributes can return
correct status of OUT_OF_RESOURCES when requested attributes cannot
be applied due to lack of system resource.
Cc: Felix Polyudov <felixp@ami.com>
Cc: David Hsieh <davidhsieh@ami.com>
Cc: James Wang <jameswang@ami.com>
Signed-off-by: Crystal Lee <crystallee@ami.com>
-rw-r--r-- | UefiCpuPkg/CpuDxe/CpuPageTable.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c index 52c50b073b..9a519bcb7e 100644 --- a/UefiCpuPkg/CpuDxe/CpuPageTable.c +++ b/UefiCpuPkg/CpuDxe/CpuPageTable.c @@ -849,7 +849,6 @@ ConvertMemoryPageAttributes ( Status = SplitPage (PageEntry, PageAttribute, SplitAttribute, AllocatePagesFunc);
if (RETURN_ERROR (Status)) {
- Status = RETURN_UNSUPPORTED;
goto Done;
}
|