#include <linux/pfn.h> /* * Reserved space for vmalloc and iomap - defined in asm/page.h
*/ #define MAXMEM_PFN PFN_DOWN(MAXMEM) #define MAX_NONPAE_PFN (1 << 20)
#define OLD_CL_MAGIC 0xA33F #define OLD_CL_ADDRESS 0x020 /* Relative to real mode data */ #define NEW_CL_POINTER 0x228 /* Relative to real mode data */
/* * Apply no randomization if KASLR was disabled at boot or if KASAN * is enabled. KASAN shadow mappings rely on regions being PGD aligned.
*/ staticinlinebool kaslr_memory_enabled(void)
{ return kaslr_enabled() && !IS_ENABLED(CONFIG_KASAN);
}
/* * Reserve space in the .brk section, which is a block of memory from which the * caller is allowed to allocate very early (before even memblock is available) * by calling extend_brk(). All allocated memory will be eventually converted * to memblock. Any leftover unallocated memory will be freed. * * The size is in bytes.
*/ #define RESERVE_BRK(name, size) \
__section(".bss..brk") __aligned(1) __used \ staticchar __brk_##name[size]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.