diff options
| author | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
| commit | 8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch) | |
| tree | a8b359e59196be5b2e3862bed189107f4bc9975f /src/include/ipxe/null_memmap.h | |
| parent | Merge branch 'master' into openslx (diff) | |
| parent | [prefix] Make unlzma.S compatible with 386 class CPUs (diff) | |
| download | ipxe-openslx.tar.gz ipxe-openslx.tar.xz ipxe-openslx.zip | |
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/include/ipxe/null_memmap.h')
| -rw-r--r-- | src/include/ipxe/null_memmap.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/include/ipxe/null_memmap.h b/src/include/ipxe/null_memmap.h new file mode 100644 index 000000000..122280d14 --- /dev/null +++ b/src/include/ipxe/null_memmap.h @@ -0,0 +1,45 @@ +#ifndef _IPXE_NULL_MEMMAP_H +#define _IPXE_NULL_MEMMAP_H + +#include <stdint.h> + +/** @file + * + * Null system memory map API + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); +FILE_SECBOOT ( PERMITTED ); + +#ifdef MEMMAP_NULL +#define MEMMAP_PREFIX_null +#else +#define MEMMAP_PREFIX_null __null_ +#endif + +/** + * Describe memory region from system memory map + * + * @v min Minimum address + * @v hide Hide in-use regions from the memory map + * @v region Region descriptor to fill in + */ +static inline __attribute__ (( always_inline )) void +MEMMAP_INLINE ( null, memmap_describe ) ( uint64_t min, int hide __unused, + struct memmap_region *region ) { + + /* Initialise region as empty */ + memmap_init ( min, region ); +} + +/** + * Synchronise in-use regions with the externally visible system memory map + * + */ +static inline __attribute__ (( always_inline )) void +MEMMAP_INLINE ( null, memmap_sync ) ( void ) { + /* Nothing to do */ +} + +#endif /* _IPXE_NULL_MEMMAP_H */ |
