/****************************************************************************
*
-* Copyright (C) 2005 - 2013 by Vivante Corp.
+* Copyright (C) 2005 - 2014 by Vivante Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*/
gceSTATUS gckVGMMU_Construct(
IN gckVGKERNEL Kernel,
- IN gctSIZE_T MmuSize,
+ IN gctUINT32 MmuSize,
OUT gckVGMMU * Mmu
)
{
}
/* Allocate the page table. */
- mmu->pageTableSize = MmuSize;
+ mmu->pageTableSize = (gctUINT32)MmuSize;
status = gckOS_AllocateContiguous(os,
gcvFALSE,
&mmu->pageTableSize,
}
/* Compute number of entries in page table. */
- mmu->entryCount = mmu->pageTableSize / sizeof(gctUINT32);
+ mmu->entryCount = (gctUINT32)mmu->pageTableSize / sizeof(gctUINT32);
mmu->entry = 0;
/* Mark the entire page table as available. */
}
/* Compute the tail for this allocation. */
- tail = Mmu->entryCount - PageCount;
+ tail = Mmu->entryCount - (gctUINT32)PageCount;
/* Walk all entries until we find enough slots. */
for (index = Mmu->entry; index <= tail;)
if (status >= 0)
{
/* Update current entry into page table. */
- Mmu->entry = index + PageCount;
+ Mmu->entry = index + (gctUINT32)PageCount;
/* Return pointer to page table. */
*PageTable = (gctUINT32 *) Mmu->pageTableLogical + index;