extern void gKernelEnd;
// === PROTOTYPES ===
-Uint32 MM_AllocPhys();
-void MM_RefPhys(Uint32 Addr);
-void MM_DerefPhys(Uint32 Addr);
+tPAddr MM_AllocPhys();
+tPAddr MM_AllocPhysRange(int Pages);
+void MM_RefPhys(tPAddr Addr);
+void MM_DerefPhys(tPAddr Addr);
// === GLOBALS ===
int giPhysAlloc = 0;
MM_Allocate( REFERENCE_BASE + (num<<12) );
}
+ LOG("Filling");
// Fill references
gaPageReferences = (void*)REFERENCE_BASE;
memsetd(gaPageReferences, 1, kernelPages);
{
int num = giPageCount / 32 / 32;
int a, b, c;
- Uint32 ret;
+ tPAddr ret;
LOCK( &giPhysAlloc );
{
int num = giPageCount / 32 / 32;
int a, b, c;
- Uint32 ret;
+ tPAddr ret;
LOCK( &giPhysAlloc );