void InitSlab (int mb) { #ifdef SLAB_MEMORY if (SLAB_ROOT_LOC) DeleteSlab (); CURRENT_SLAB_SIZE = mb * 0x1000000; // Yuri Censor added a 0 here, 6/7/2013 CREATE_MEM (&SLAB_ROOT_LOC, 64, CURRENT_SLAB_SIZE, &SLAB_NUMBER, &LARGE_SLAB, "SLAB"); CURRENT_SLAB_LOC = SLAB_ROOT_LOC + (0x40 - ((uint64) (SLAB_ROOT_LOC) & 0x3f)); #endif FillSlab (); }
void InitSlab(int mb) { #ifdef SlabMemory if (SlabRootLoc) DeleteSlab(); CurrentSlabSize = mb * 0x100000; CreateMem(&SlabRootLoc, 64, CurrentSlabSize, &SlabNumber, &LargeSlab, "SLAB"); CurrentSlabLoc = SlabRootLoc + (0x40 - ((uint64)(SlabRootLoc) &0x3f)); #endif FillSlab(); }