In the png.c it stucks at:
Code: Select all
Data = (UINT32*)stbi__png_load(&s, &w, &h, &l, 4, &ri); // Stucks here
Source code: https://github.com/rxbin1201/Bootloader
I hope anyone can help me.
Code: Select all
Data = (UINT32*)stbi__png_load(&s, &w, &h, &l, 4, &ri); // Stucks here
Code: Select all
void * my_malloc( size_t size )
{
void * ptr;
// note: you need to add your own error handling here.
BS->AllocatePool( EfiLoaderData, size, &ptr );
return ptr;
}
Code: Select all
#define STBI_MALLOC(sz) my_malloc(sz)
Code: Select all
#define STBI_MALLOC(sz) AllocatePool(sz)
#define STBI_FREE(p) FreePool(p)
#define STBI_REALLOC_SIZED(p,oldsz,newsz) ReallocatePool(p,oldsz,newsz)