Hi Adam, I think this topic is better for the "devel" group, rather then "discuss". I've added it to cc.
I don't see why you would get back a valid pointer if the request failed. That would feel like a bug in AllocateRuntimeZeroPool. But there could be some subtlety involving pool allocations I'm missing here. You could always allocate memory with AllocatePages directly instead, to cut out the middle man, and if nothing else see if that turns up some other issue. Regards, Leif On Wed, 4 Dec 2024 at 04:21, Adam Wagner via groups.io <adwags=gmail....@groups.io> wrote: > > Hello, > > I have a DXE runtime driver that is attempting to allocate runtime pool > (via AllocateRuntimeZeroPool). I'm getting back a non-NULL pointer, but it > isn't in the runtime memory map so ConvertPointer fails later. It looks > like the returned address is in a memory region of "conventional" type > which if I understand correctly is where free memory lives? > > I think I may be hitting the "Attempt to find free pages in the default > allocation bin" case here... > https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Mem/Page.c#L1281 > > Is there a way to "relocate" or "promote" this to the runtime pool or > otherwise get it into the runtime memory map? Sorry if my terminology is > wrong, I'm obviously a newb. I poked around on the groups here and on > bugzilla but couldn't find anything related. > > Thanks, > Adam > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120867): https://edk2.groups.io/g/devel/message/120867 Mute This Topic: https://groups.io/mt/109918571/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-