UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
memlayout.h File Reference

Go to the source code of this file.

Macros

#define EXTMEM   0x100000
 
#define PHYSTOP   0xE000000
 
#define DEVSPACE   0xFE000000
 
#define KERNBASE   0x80000000
 
#define KERNLINK   (KERNBASE+EXTMEM)
 
#define V2P(a)   (((uint) (a)) - KERNBASE)
 
#define P2V(a)   (((void *) (a)) + KERNBASE)
 
#define V2P_WO(x)   ((x) - KERNBASE)
 
#define P2V_WO(x)   ((x) + KERNBASE)
 

Macro Definition Documentation

#define DEVSPACE   0xFE000000

Definition at line 5 of file memlayout.h.

#define EXTMEM   0x100000

Definition at line 3 of file memlayout.h.

#define KERNBASE   0x80000000

Definition at line 8 of file memlayout.h.

#define KERNLINK   (KERNBASE+EXTMEM)

Definition at line 9 of file memlayout.h.

#define P2V (   a)    (((void *) (a)) + KERNBASE)

Definition at line 19 of file memlayout.h.

#define P2V_WO (   x)    ((x) + KERNBASE)

Definition at line 22 of file memlayout.h.

#define PHYSTOP   0xE000000

Definition at line 4 of file memlayout.h.

#define V2P (   a)    (((uint) (a)) - KERNBASE)

Definition at line 18 of file memlayout.h.

#define V2P_WO (   x)    ((x) - KERNBASE)

Definition at line 21 of file memlayout.h.