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)
 
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 17 of file null_memmap.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ __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 28 of file null_memmap.h.

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

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 40 of file null_memmap.h.

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

Referenced by memmap_use().