Skip to content

Commit 96390bb

Browse files
CrystalLee-77mergify[bot]
authored andcommitted
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 <[email protected]> Cc: David Hsieh <[email protected]> Cc: James Wang <[email protected]> Signed-off-by: Crystal Lee <[email protected]>
1 parent efaa102 commit 96390bb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

UefiCpuPkg/CpuDxe/CpuPageTable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,6 @@ ConvertMemoryPageAttributes (
849849

850850
Status = SplitPage (PageEntry, PageAttribute, SplitAttribute, AllocatePagesFunc);
851851
if (RETURN_ERROR (Status)) {
852-
Status = RETURN_UNSUPPORTED;
853852
goto Done;
854853
}
855854

0 commit comments

Comments
 (0)