BOOLEAN
MmInitSystem(
  IN  ULONG Phase,
  IN  PLOADER_PARAMETER_BLOCK LoaderBlock,
  IN  PPHYSICAL_MEMORY_DESCRIPTOR PhysicalMemoryBlock
  );

Routine Description:

    This function is called during Phase 0, phase 1 and at the end
    of phase 1 ("phase 2") initialization.

    Phase 0 initializes the memory management paging functions,
    nonpaged and paged pool, the PFN database, etc.

    Phase 1 initializes the section objects, the physical memory
    object, and starts the memory management system threads.

    Phase 2 frees memory used by the OsLoader.

Arguments:

    Phase - System initialization phase.

    LoaderBlock - Supplies a pointer to the system loader block.

Return Value:

    Returns TRUE if the initialization was successful.

Environment:

    Kernel Mode Only.  System initialization.