Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Variables
mem-layout.h File Reference
#include <linux/const.h>

Go to the source code of this file.

Macros

#define PAGE_OFFSET   _AC(0xc0000000, UL)
 
#define LOAD_ADDRESS   0x00000000
 
#define TASK_SIZE   (PAGE_OFFSET)
 
#define STACK_TOP   TASK_SIZE
 
#define STACK_TOP_MAX   TASK_SIZE
 
#define MIN_KERNEL_SEG   0x300 /* From 0xc0000000 */
 
#define VMALLOC_START
 
#define VMALLOC_OFFSET   PAGE_SIZE
 
#define FIXADDR_TOP   0xfe000000
 
#define FIXADDR_SIZE   (__end_of_fixed_addresses << PAGE_SHIFT)
 
#define FIXADDR_START   (FIXADDR_TOP - FIXADDR_SIZE)
 
#define LAST_PKMAP   PTRS_PER_PTE
 
#define LAST_PKMAP_MASK   (LAST_PKMAP - 1)
 
#define PKMAP_NR(virt)   ((virt - PKMAP_BASE) >> PAGE_SHIFT)
 
#define PKMAP_ADDR(nr)   (PKMAP_BASE + ((nr) << PAGE_SHIFT))
 
#define PKMAP_BASE   (FIXADDR_START-PAGE_SIZE*LAST_PKMAP)
 
#define VMALLOC_END   (PKMAP_BASE-PAGE_SIZE*2)
 

Enumerations

enum  fixed_addresses {
  FIX_KMAP_BEGIN, FIX_KMAP_END, __end_of_fixed_addresses, FIX_HOLE,
  __end_of_fixed_addresses, FIX_CMAP_BEGIN, FIX_CMAP_END = FIX_CMAP_BEGIN + (FIX_N_COLOURS * 2), __end_of_fixed_addresses,
  FIX_IOREMAP_BEGIN, FIX_IOREMAP_END = FIX_IOREMAP_BEGIN + FIX_N_IOREMAPS - 1, __end_of_fixed_addresses, FIX_HOLE,
  FIX_EARLY_DEBUG_TOP = FIX_HOLE, FIX_EARLY_DEBUG_BASE = FIX_EARLY_DEBUG_TOP+((128*1024)/PAGE_SIZE)-1, __end_of_fixed_addresses, FIX_CMAP_BEGIN,
  FIX_CMAP_END = FIX_CMAP_BEGIN + FIX_N_COLOURS, __end_of_fixed_addresses, FIX_CMAP_BEGIN, FIX_CMAP_END = FIX_CMAP_BEGIN + (FIX_N_COLOURS * NR_CPUS) - 1,
  __end_of_fixed_addresses, FIX_HOLE, __end_of_fixed_addresses, __end_of_permanent_fixed_addresses,
  __end_of_fixed_addresses = __end_of_permanent_fixed_addresses, __end_of_fixed_addresses, VSYSCALL_LAST_PAGE, VSYSCALL_FIRST_PAGE,
  VVAR_PAGE, VSYSCALL_HPET, FIX_DBGP_BASE, FIX_EARLYCON_MEM_BASE,
  FIX_TEXT_POKE1, FIX_TEXT_POKE0, __end_of_permanent_fixed_addresses, FIX_BTMAP_END,
  FIX_BTMAP_BEGIN = FIX_BTMAP_END + TOTAL_FIX_BTMAPS - 1, __end_of_fixed_addresses
}
 

Variables

int max_kernel_seg
 

Macro Definition Documentation

#define FIXADDR_SIZE   (__end_of_fixed_addresses << PAGE_SHIFT)

Definition at line 81 of file mem-layout.h.

#define FIXADDR_START   (FIXADDR_TOP - FIXADDR_SIZE)

Definition at line 82 of file mem-layout.h.

#define FIXADDR_TOP   0xfe000000

Definition at line 80 of file mem-layout.h.

#define LAST_PKMAP   PTRS_PER_PTE

Definition at line 89 of file mem-layout.h.

#define LAST_PKMAP_MASK   (LAST_PKMAP - 1)

Definition at line 90 of file mem-layout.h.

#define LOAD_ADDRESS   0x00000000

Definition at line 42 of file mem-layout.h.

#define MIN_KERNEL_SEG   0x300 /* From 0xc0000000 */

Definition at line 58 of file mem-layout.h.

#define PAGE_OFFSET   _AC(0xc0000000, UL)

Definition at line 32 of file mem-layout.h.

#define PKMAP_ADDR (   nr)    (PKMAP_BASE + ((nr) << PAGE_SHIFT))

Definition at line 92 of file mem-layout.h.

#define PKMAP_BASE   (FIXADDR_START-PAGE_SIZE*LAST_PKMAP)

Definition at line 102 of file mem-layout.h.

#define PKMAP_NR (   virt)    ((virt - PKMAP_BASE) >> PAGE_SHIFT)

Definition at line 91 of file mem-layout.h.

#define STACK_TOP   TASK_SIZE

Definition at line 48 of file mem-layout.h.

#define STACK_TOP_MAX   TASK_SIZE

Definition at line 49 of file mem-layout.h.

#define TASK_SIZE   (PAGE_OFFSET)

Definition at line 45 of file mem-layout.h.

#define VMALLOC_END   (PKMAP_BASE-PAGE_SIZE*2)

Definition at line 108 of file mem-layout.h.

#define VMALLOC_OFFSET   PAGE_SIZE

Definition at line 70 of file mem-layout.h.

#define VMALLOC_START
Value:
(unsigned long)high_memory)

Definition at line 66 of file mem-layout.h.

Enumeration Type Documentation

Enumerator:
FIX_KMAP_BEGIN 
FIX_KMAP_END 
__end_of_fixed_addresses 
FIX_HOLE 
__end_of_fixed_addresses 
FIX_CMAP_BEGIN 
FIX_CMAP_END 
__end_of_fixed_addresses 
FIX_IOREMAP_BEGIN 
FIX_IOREMAP_END 
__end_of_fixed_addresses 
FIX_HOLE 
FIX_EARLY_DEBUG_TOP 
FIX_EARLY_DEBUG_BASE 
__end_of_fixed_addresses 
FIX_CMAP_BEGIN 
FIX_CMAP_END 
__end_of_fixed_addresses 
FIX_CMAP_BEGIN 
FIX_CMAP_END 
__end_of_fixed_addresses 
FIX_HOLE 
__end_of_fixed_addresses 
__end_of_permanent_fixed_addresses 
__end_of_fixed_addresses 
__end_of_fixed_addresses 
VSYSCALL_LAST_PAGE 
VSYSCALL_FIRST_PAGE 
VVAR_PAGE 
VSYSCALL_HPET 
FIX_DBGP_BASE 
FIX_EARLYCON_MEM_BASE 
FIX_TEXT_POKE1 
FIX_TEXT_POKE0 
__end_of_permanent_fixed_addresses 
FIX_BTMAP_END 
FIX_BTMAP_BEGIN 
__end_of_fixed_addresses 

Definition at line 52 of file mem-layout.h.

Variable Documentation

int max_kernel_seg

Definition at line 39 of file init.c.