mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 19:28:29 +00:00
[metal] Clean up code for getting pointer to struct mman
(#828)
Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
This commit is contained in:
parent
5a6a4819d4
commit
e47c0cc929
5 changed files with 8 additions and 6 deletions
|
@ -176,7 +176,7 @@ __msabi noasan EFI_STATUS EfiMain(EFI_HANDLE ImageHandle,
|
|||
SystemTable->BootServices->AllocatePages(
|
||||
AllocateAddress, EfiRuntimeServicesData,
|
||||
((_end - __executable_start) + 4095) / 4096, &Address);
|
||||
mm = (struct mman *)0x0500;
|
||||
mm = __get_mm_phy();
|
||||
SystemTable->BootServices->SetMem(mm, sizeof(*mm), 0);
|
||||
SystemTable->BootServices->SetMem(
|
||||
(void *)0x79000, 0x7e000 - 0x79000 + sizeof(struct EfiArgs), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue