RDFU  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Memory.h File Reference

Structures, function definitions for handles and images. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _memory_map_entry
 
struct  _memory_map_entry_list
 

Macros

#define MEM_START_PROBE   0x00000000
 
#define MEM_END_PROBE   0xFFFFFFFF-4096
 
#define MAX_PE_MEM   5*1000000
 
#define BIOS_ROM_BASE   0xffe00000
 
#define BIOS_ROM_END   0xffffffff
 

Typedefs

typedef struct _memory_map_entry memory_map_entry
 
typedef struct
_memory_map_entry_list 
memory_map_entry_list
 

Functions

__inline BOOLEAN isMEM_ATTR_MEMORY_UC (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_WC (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_WT (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_WB (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_UCE (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_WP (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_RP (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_XP (UINT64 Attrs)
 
__inline BOOLEAN isMEM_ATTR_MEMORY_RUNTIME (UINT64 Attrs)
 

Detailed Description

Structures, function definitions for handles and images.

Author
Piotr Bania
Date
Feb 2013 Structures, function definitions for memory operations

Important notes from the EFI specification documents:

  • (ia-32) All selectors set to be flat with virtual = physical address.
  • (x64) Paging mode is enabled and any memory space defined by the UEFI memory map is identity mapped (virtual address equals physical address). The mappings to other regions are undefined and may vary form implementation to implementation.
  • (x64) Selectors are set to be flat and are otherwise not used

Definition in file Memory.h.

Macro Definition Documentation

#define BIOS_ROM_BASE   0xffe00000

Definition at line 28 of file Memory.h.

Referenced by DumpFirmwareFromROM().

#define BIOS_ROM_END   0xffffffff

Definition at line 29 of file Memory.h.

Referenced by DumpFirmwareFromROM().

#define MAX_PE_MEM   5*1000000

Definition at line 25 of file Memory.h.

Referenced by DumpPEFile().

#define MEM_END_PROBE   0xFFFFFFFF-4096

Definition at line 24 of file Memory.h.

Referenced by ScanMemoryForExecutables().

#define MEM_START_PROBE   0x00000000

Definition at line 23 of file Memory.h.

Referenced by ScanMemoryForExecutables().

Typedef Documentation

Function Documentation

__inline BOOLEAN isMEM_ATTR_MEMORY_RP ( UINT64  Attrs)

Definition at line 78 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

78 { return ((Attrs & EFI_MEMORY_RP) == EFI_MEMORY_RP); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_RUNTIME ( UINT64  Attrs)

Definition at line 80 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

80 { return ((Attrs & EFI_MEMORY_RUNTIME) == EFI_MEMORY_RUNTIME); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_UC ( UINT64  Attrs)

Definition at line 72 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

72 { return ((Attrs & EFI_MEMORY_UC) == EFI_MEMORY_UC); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_UCE ( UINT64  Attrs)

Definition at line 76 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

76 { return ((Attrs & EFI_MEMORY_UCE) == EFI_MEMORY_UCE); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_WB ( UINT64  Attrs)

Definition at line 75 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

75 { return ((Attrs & EFI_MEMORY_WB) == EFI_MEMORY_WB); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_WC ( UINT64  Attrs)

Definition at line 73 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

73 { return ((Attrs & EFI_MEMORY_WC) == EFI_MEMORY_WC); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_WP ( UINT64  Attrs)

Definition at line 77 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

77 { return ((Attrs & EFI_MEMORY_WP) == EFI_MEMORY_WP); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_WT ( UINT64  Attrs)

Definition at line 74 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

74 { return ((Attrs & EFI_MEMORY_WT) == EFI_MEMORY_WT); }

Here is the caller graph for this function:

__inline BOOLEAN isMEM_ATTR_MEMORY_XP ( UINT64  Attrs)

Definition at line 79 of file Memory.h.

Referenced by GetMemAttributesStringAscii().

79 { return ((Attrs & EFI_MEMORY_XP) == EFI_MEMORY_XP); }

Here is the caller graph for this function: