So I'm trying to call AllocatePages on a known fixed address as follows: Status=gBS->AllocatePages(AllocateAddress, EfiLoaderData , pages,(EFI_PHYSICAL_ADDRESS*)&memory);
I'm reading pages and the addresses from PCI registers. Here is the problem, when I allocate I get "Incompatible Memory Type" in ConvertPages for AllocatePages. I have tried changing the fixed address to something else and I don't get the error. How do I find an intersection of allowable address ranges ? What I mean is, I have to usecertain address ranges in my application - but I want to make sure they're actually use-able. Will GetMemoryMap()give me available address ranges which can legally be allocated ? If so then I can find an intersectionbetween the address range(s) I want to use and what GetMemoryMap() returns. Thanks, Shubha Shubha D. [email protected] [email protected] _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

