Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
meminit.h File Reference

Go to the source code of this file.

Data Structures

struct  rsvd_region
 

Macros

#define IA64_MAX_RSVD_REGIONS   9
 
#define GRANULEROUNDDOWN(n)   ((n) & ~(IA64_GRANULE_SIZE-1))
 
#define GRANULEROUNDUP(n)   (((n)+IA64_GRANULE_SIZE-1) & ~(IA64_GRANULE_SIZE-1))
 
#define call_pernode_memory(start, len, func)   (*func)(start, len, 0)
 
#define IGNORE_PFN0   1 /* XXX fix me: ignore pfn 0 until TLB miss handler is updated... */
 

Functions

void find_memory (void)
 
void reserve_memory (void)
 
void find_initrd (void)
 
int filter_rsvd_memory (u64 start, u64 end, void *arg)
 
int filter_memory (u64 start, u64 end, void *arg)
 
unsigned long efi_memmap_init (u64 *s, u64 *e)
 
int find_max_min_low_pfn (u64, u64, void *)
 
unsigned long vmcore_find_descriptor_size (unsigned long address)
 
int reserve_elfcorehdr (u64 *start, u64 *end)
 
int register_active_ranges (u64 start, u64 len, int nid)
 

Variables

struct rsvd_region rsvd_region [IA64_MAX_RSVD_REGIONS+1]
 
int num_rsvd_regions
 

Macro Definition Documentation

#define call_pernode_memory (   start,
  len,
  func 
)    (*func)(start, len, 0)

Definition at line 55 of file meminit.h.

#define GRANULEROUNDDOWN (   n)    ((n) & ~(IA64_GRANULE_SIZE-1))

Definition at line 49 of file meminit.h.

#define GRANULEROUNDUP (   n)    (((n)+IA64_GRANULE_SIZE-1) & ~(IA64_GRANULE_SIZE-1))

Definition at line 50 of file meminit.h.

#define IA64_MAX_RSVD_REGIONS   9

Definition at line 25 of file meminit.h.

#define IGNORE_PFN0   1 /* XXX fix me: ignore pfn 0 until TLB miss handler is updated... */

Definition at line 58 of file meminit.h.

Function Documentation

unsigned long efi_memmap_init ( u64 s,
u64 e 
)

Definition at line 1072 of file efi.c.

int filter_memory ( u64  start,
u64  end,
void arg 
)

Definition at line 186 of file setup.c.

int filter_rsvd_memory ( u64  start,
u64  end,
void arg 
)

Definition at line 146 of file setup.c.

void find_initrd ( void  )

find_initrd - get initrd parameters from the boot parameter structure

Grab the initrd start and end from the boot parameter struct given us by the boot loader.

Definition at line 404 of file setup.c.

int find_max_min_low_pfn ( u64  ,
u64  ,
void  
)

Definition at line 579 of file init.c.

void find_memory ( void  )

find_memory - setup memory map

Walk the EFI memory map and find usable memory for the system, taking into account reserved areas.

find_memory - walk the EFI memory map and setup the bootmem allocator

Called early in boot to setup the bootmem allocator, and to allocate the per-cpu and per-node structures.

Definition at line 264 of file contig.c.

int register_active_ranges ( u64  start,
u64  len,
int  nid 
)

Definition at line 549 of file init.c.

int reserve_elfcorehdr ( u64 start,
u64 end 
)
void reserve_memory ( void  )

reserve_memory - setup reserved memory areas

Setup the reserved memory areas set aside for the boot parameters, initrd, etc. There are currently IA64_MAX_RSVD_REGIONS defined, see arch/ia64/include/asm/meminit.h if you need to define more.

Definition at line 338 of file setup.c.

unsigned long vmcore_find_descriptor_size ( unsigned long  address)

Variable Documentation

int num_rsvd_regions