iPXE
Macros | Functions
null_memmap.h File Reference

Null system memory map API. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define MEMMAP_PREFIX_null   __null_
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 FILE_SECBOOT (PERMITTED)
 
static __attribute__ ((always_inline)) void MEMMAP_INLINE(null
 Describe memory region from system memory map. More...
 
static memmap_describe (uint64_t min, int hide __unused, struct memmap_region *region)
 Describe memory region from system memory map. More...
 
static memmap_sync (void)
 Synchronise in-use regions with the externally visible system memory map. More...
 

Detailed Description

Null system memory map API.

Definition in file null_memmap.h.

Macro Definition Documentation

◆ MEMMAP_PREFIX_null

#define MEMMAP_PREFIX_null   __null_

Definition at line 18 of file null_memmap.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED  )

◆ __attribute__()

static __attribute__ ( (always_inline)  )
inlinestatic

Describe memory region from system memory map.

Synchronise in-use regions with the externally visible system memory map.

Parameters
minMinimum address
hideHide in-use regions from the memory map
regionRegion descriptor to fill in

◆ memmap_describe()

static memmap_describe ( uint64_t  min,
int  hide,
struct memmap_region region 
)

Describe memory region from system memory map.

Parameters
minMinimum address
hideHide in-use regions from the memory map
regionRegion descriptor to fill in

Definition at line 29 of file null_memmap.h.

30  {
31 
32  /* Initialise region as empty */
33  memmap_init ( min, region );
34 }
#define min(x, y)
Definition: ath.h:36
static void memmap_init(uint64_t min, struct memmap_region *region)
Initialise memory region descriptor.
Definition: memmap.h:72

References memmap_init(), and min.

Referenced by com32_exec_loop(), memmap_dump_all(), and prep_segment().

◆ memmap_sync()

static memmap_sync ( void  )

Synchronise in-use regions with the externally visible system memory map.

In environments such as x86 BIOS, we need to patch the global system memory map to hide our in-use regions, since there is no other way to communicate this information to external code.

Definition at line 41 of file null_memmap.h.

41  {
42  /* Nothing to do */
43 }

Referenced by memmap_use().