mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 06:34:30 +02:00
SysCall: Removed superfluous User attributes settings.
This commit is contained in:
parent
39460473ff
commit
a838238251
@ -605,14 +605,6 @@ CallBootService (
|
|||||||
*(EFI_PHYSICAL_ADDRESS *)UserRsp->Arguments[4] = (EFI_PHYSICAL_ADDRESS)Argument4;
|
*(EFI_PHYSICAL_ADDRESS *)UserRsp->Arguments[4] = (EFI_PHYSICAL_ADDRESS)Argument4;
|
||||||
ForbidSupervisorAccessToUserMemory ();
|
ForbidSupervisorAccessToUserMemory ();
|
||||||
|
|
||||||
gCpu->SetUserMemoryAttributes (
|
|
||||||
gCpu,
|
|
||||||
gUserPageTable,
|
|
||||||
Argument4,
|
|
||||||
EFI_PAGES_TO_SIZE (CoreRbp->Argument3),
|
|
||||||
EFI_MEMORY_USER
|
|
||||||
);
|
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
||||||
case SysCallFreePages:
|
case SysCallFreePages:
|
||||||
@ -625,14 +617,6 @@ CallBootService (
|
|||||||
gCpu->GetMemoryAttributes (gCpu, (EFI_PHYSICAL_ADDRESS)(CoreRbp->Argument2 + CoreRbp->Argument1 * EFI_PAGE_SIZE - 1), &Attributes);
|
gCpu->GetMemoryAttributes (gCpu, (EFI_PHYSICAL_ADDRESS)(CoreRbp->Argument2 + CoreRbp->Argument1 * EFI_PAGE_SIZE - 1), &Attributes);
|
||||||
ASSERT ((Attributes & EFI_MEMORY_USER) != 0);
|
ASSERT ((Attributes & EFI_MEMORY_USER) != 0);
|
||||||
|
|
||||||
gCpu->SetUserMemoryAttributes (
|
|
||||||
gCpu,
|
|
||||||
gUserPageTable,
|
|
||||||
CoreRbp->Argument2,
|
|
||||||
EFI_PAGES_TO_SIZE (CoreRbp->Argument1),
|
|
||||||
EFI_MEMORY_RP
|
|
||||||
);
|
|
||||||
|
|
||||||
return gBS->FreePages (
|
return gBS->FreePages (
|
||||||
*(EFI_PHYSICAL_ADDRESS *)&CoreRbp->Argument2,
|
*(EFI_PHYSICAL_ADDRESS *)&CoreRbp->Argument2,
|
||||||
CoreRbp->Argument1
|
CoreRbp->Argument1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user