Phoenix
Object-oriented orthogonally persistent operating system
Classes | Public Types | Public Member Functions
efi::MemoryMap Class Reference

EFI memory map representation which is returned by EFI GetMemoryMap() boot service. More...

#include <efi.h>

List of all members.

Classes

struct  MemDesc
 EFI memory descriptor. More...
class  MemDescIterator
 Iterator class for memory regions descriptors iteration. More...

Public Types

enum  MemType
 Memory regions types. More...
enum  MemAttr {
  EFI_MEMORY_UC = 0x1, EFI_MEMORY_WC = 0x2, EFI_MEMORY_WT = 0x4, EFI_MEMORY_WB = 0x8,
  EFI_MEMORY_UCE = 0x10, EFI_MEMORY_WP = 0x1000, EFI_MEMORY_RP = 0x2000, EFI_MEMORY_XP = 0x4000,
  EFI_MEMORY_RUNTIME = 0x8000000000000000
}
 Memory regions attributes. More...

Public Member Functions

RetCode SetVirtualAddressMap ()
 Apply new virtual address map for the required areas to the firmware.

Detailed Description

EFI memory map representation which is returned by EFI GetMemoryMap() boot service.


Member Enumeration Documentation

Memory regions attributes.

Enumerator:
EFI_MEMORY_UC 

Memory cacheability attribute: The memory region supports being configured as not cacheable.

EFI_MEMORY_WC 

Memory cacheability attribute: The memory region supports being configured as write combining.

EFI_MEMORY_WT 

Memory cacheability attribute: The memory region supports being configured as cacheable with a “write through” policy.

Writes that hit in the cache will also be written to main memory.

EFI_MEMORY_WB 

Memory cacheability attribute: The memory region supports being configured as cacheable with a “write back” policy.

Reads and writes that hit in the cache do not propagate to main memory. Dirty data is written back to main memory when a new cache line is allocated.

EFI_MEMORY_UCE 

Memory cacheability attribute: The memory region supports being configured as not cacheable, exported, and supports the “fetch and add” semaphore mechanism.

EFI_MEMORY_WP 

Physical memory protection attribute: The memory region supports being configured as write-protected by system hardware.

EFI_MEMORY_RP 

Physical memory protection attribute: The memory region supports being configured as read-protected by system hardware.

EFI_MEMORY_XP 

Physical memory protection attribute: The memory region supports being configured so it is protected by system hardware from executing code.

EFI_MEMORY_RUNTIME 

Runtime memory attribute: The memory region needs to be given a virtual mapping by the operating system when SetVirtualAddressMap() is called.

Memory regions types.


Member Function Documentation

RetCode MemoryMap::SetVirtualAddressMap ( )

Apply new virtual address map for the required areas to the firmware.

Returns:
true if EFI call succeed, false otherwise.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines