SysCall: Removed superfluous User attributes settings.

This commit is contained in:
Mikhail Krichanov 2024-12-05 12:28:28 +03:00
parent dd7fb79ab4
commit 0ba3936b28
1 changed files with 0 additions and 16 deletions

View File

@ -605,14 +605,6 @@ CallBootService (
*(EFI_PHYSICAL_ADDRESS *)UserRsp->Arguments[4] = (EFI_PHYSICAL_ADDRESS)Argument4;
ForbidSupervisorAccessToUserMemory ();
gCpu->SetUserMemoryAttributes (
gCpu,
gUserPageTable,
Argument4,
EFI_PAGES_TO_SIZE (CoreRbp->Argument3),
EFI_MEMORY_USER
);
return Status;
case SysCallFreePages:
@ -625,14 +617,6 @@ CallBootService (
gCpu->GetMemoryAttributes (gCpu, (EFI_PHYSICAL_ADDRESS)(CoreRbp->Argument2 + CoreRbp->Argument1 * EFI_PAGE_SIZE - 1), &Attributes);
ASSERT ((Attributes & EFI_MEMORY_USER) != 0);
gCpu->SetUserMemoryAttributes (
gCpu,
gUserPageTable,
CoreRbp->Argument2,
EFI_PAGES_TO_SIZE (CoreRbp->Argument1),
EFI_MEMORY_RP
);
return gBS->FreePages (
*(EFI_PHYSICAL_ADDRESS *)&CoreRbp->Argument2,
CoreRbp->Argument1