Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.26-rc7 50 lines 1.5 kB view raw
1/* 2 * structures and definitions for the int 15, ax=e820 memory map 3 * scheme. 4 * 5 * In a nutshell, arch/i386/boot/setup.S populates a scratch table 6 * in the empty_zero_block that contains a list of usable address/size 7 * duples. In arch/i386/kernel/setup.c, this information is 8 * transferred into the e820map, and in arch/i386/mm/init.c, that 9 * new information is used to mark pages reserved or not. 10 * 11 */ 12#ifndef __E820_HEADER 13#define __E820_HEADER 14 15#include <linux/ioport.h> 16 17#define HIGH_MEMORY (1024*1024) 18 19#ifndef __ASSEMBLY__ 20 21extern struct e820map e820; 22extern void update_e820(void); 23 24extern int e820_all_mapped(unsigned long start, unsigned long end, 25 unsigned type); 26extern int e820_any_mapped(u64 start, u64 end, unsigned type); 27extern void propagate_e820_map(void); 28extern void register_bootmem_low_pages(unsigned long max_low_pfn); 29extern void add_memory_region(unsigned long long start, 30 unsigned long long size, int type); 31extern void update_memory_range(u64 start, u64 size, unsigned old_type, 32 unsigned new_type); 33extern void e820_register_memory(void); 34extern void limit_regions(unsigned long long size); 35extern void print_memory_map(char *who); 36extern void init_iomem_resources(struct resource *code_resource, 37 struct resource *data_resource, 38 struct resource *bss_resource); 39 40#if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION) 41extern void e820_mark_nosave_regions(void); 42#else 43static inline void e820_mark_nosave_regions(void) 44{ 45} 46#endif 47 48 49#endif/*!__ASSEMBLY__*/ 50#endif/*__E820_HEADER*/