C# Class Mosa.Kernel.x86.PageFrameAllocator

A physical page allocator.
Exibir arquivo Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method Description
Allocate ( ) : uint

Allocate a physical page from the free list

Free ( uint address ) : void

Releases a page to the free list

Setup ( ) : void

Setup the physical page manager

Private Methods

Method Description
AddFreeMemory ( uint cnt, uint start, uint size ) : void

Adds the free memory.

SetupFreeMemory ( ) : void

Setups the free memory.

Method Details

Allocate() public static method

Allocate a physical page from the free list
public static Allocate ( ) : uint
return uint

Free() public static method

Releases a page to the free list
public static Free ( uint address ) : void
address uint The address.
return void

Setup() public static method

Setup the physical page manager
public static Setup ( ) : void
return void