mirror of https://github.com/acidanthera/audk.git
SysCall: Removed superfluous User attributes settings.
This commit is contained in:
parent
dd7fb79ab4
commit
0ba3936b28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue