rk29: vivante: alloc_pages add GFP_DMA flag to support 1G memory

This commit is contained in:
黄涛
2011-06-27 14:16:12 +08:00
parent d11238ad51
commit c17e447d90

View File

@@ -494,7 +494,7 @@ gckOS_AllocateNonPagedMemoryFromSystem(
#else
size = mdl->numPages * PAGE_SIZE;
order = get_order(size);
page = alloc_pages(GFP_KERNEL , order); // dkm modify 110330 <20><>GFP_DMAȥ<41><C8A5>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E4B2BB>DMA<4D>ڴ<EFBFBD>
page = alloc_pages(GFP_KERNEL | GFP_DMA, order);
if (page == gcvNULL)
{
@@ -1883,10 +1883,10 @@ gckOS_AllocateNonPagedMemory(
if (page == gcvNULL)
{
page = alloc_pages(GFP_KERNEL, order);
page = alloc_pages(GFP_KERNEL | GFP_DMA, order);
}
#else
page = alloc_pages(GFP_KERNEL , order); // dkm modify 110330 <20><>GFP_DMAȥ<41><C8A5>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E4B2BB>DMA<4D>ڴ<EFBFBD>
page = alloc_pages(GFP_KERNEL | GFP_DMA, order);
#endif /* gcdkUSE_NON_PAGED_MEMORY_CACHE */
if (page == gcvNULL)