On October 10, 2022 10:28 AM, Gao Liming wrote: > > Min: > I have no comments for new unaccepted resource type and unaccepted gcd > type. In fact, they are mapping to UEFI EfiUnacceptedMemoryType. > > For new protocol EfiMemoryAcceptProtocol, I see another patch serial > https://edk2.groups.io/g/devel/message/94763 base on it to introduce > ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL. Can these two protocols > be combined into one? > EfiMemoryAcceptProtocol looks like this: typedef EFI_STATUS (EFIAPI *EDKII_ACCEPT_MEMORY)( IN EDKII_MEMORY_ACCEPT_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS StartAddress, IN UINTN Size ); This protocol is called to accept the memory based on the input start address and size.
While ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL looks like below: typedef EFI_STATUS (EFIAPI *BZ3987_DISABLE_ACCEPT_ALL_UNACCEPTED_MEMORY)( IN BZ3987_ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL *This ); According to its description (https://edk2.groups.io/g/devel/message/94768) this protocol is used to disable the behavior of accepting all unaccepted memory. And it is designed to be called by the OS loader, not EDK2 itself. I am afraid these 2 protocols cannot be combined into one. Dionna what's your thought? Thanks Min -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94869): https://edk2.groups.io/g/devel/message/94869 Mute This Topic: https://groups.io/mt/94229046/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-