Hi,

In our option ROM for our storage controller , I am trying to allocate some 
memory using BS->AllocatePool().I see that the call just hangs and never comes 
out.

Basically , we have a structure like this :

Struct A
{
                //some elements
                void * ptr;
                //some elements
};

We are calling BS->Allocate pool with the arguments EfiBootServicesData, 
sizeof(struct A), (void **)&p  where "p" is  of type  Struct A * p  .

This allocation is successful. The return value is success.

Now again after this allocation we do another call  to BS->AllocatePool(). The 
argument passed this time are EfiBootServicesData, sizeof(struct B),(void 
**)&p->ptr . The intention is to later typecast p->ptr to struct *B and use it.

This allocation just hangs inside AllocatePool function and control never come 
out of AllocatePool call.

Can I get come pointers to debug this issue? Am I missing any finer point here 
? memmap command shows ample amount of memory in the system . Addresses 
allocated in first allocation looks sane enough (0xFXXXXXXX range) .
Also I have used a skeleton EFI driver to allocate huge amount of memory 
(around 30000 bytes at one time , running into 1000 loops) with a couple of 
structure similar to structs A and B above , passed to the Allocatepoo() in the 
same way as shown above. Allocation is successful in all the 1000 loops. Any 
ideas ?

BTW the platform is Itanium (so I am building an IPF version of our oprom) , 64 
bit machine. And the EDK is EDK 2.0. And system BIOS is  confirming to UEFI 2.0.

Regards
Deb



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to