Subversion Repositories HelenOS-historic

Rev

Rev 832 | Rev 967 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 832 Rev 957
Line 31... Line 31...
31
 
31
 
32
#define PAGE_WIDTH  FRAME_WIDTH
32
#define PAGE_WIDTH  FRAME_WIDTH
33
#define PAGE_SIZE   FRAME_SIZE
33
#define PAGE_SIZE   FRAME_SIZE
34
 
34
 
35
#ifndef __ASM__
35
#ifndef __ASM__
36
# define KA2PA(x)   (((__address) (x)) - 0x80000000)
36
#   define KA2PA(x) (((__address) (x)) - 0x80000000)
37
# define PA2KA(x)   (((__address) (x)) + 0x80000000)
37
#   define PA2KA(x) (((__address) (x)) + 0x80000000)
38
#else
38
#else
39
# define KA2PA(x)   ((x) - 0x80000000)
39
#   define KA2PA(x) ((x) - 0x80000000)
40
# define PA2KA(x)   ((x) + 0x80000000)
40
#   define PA2KA(x) ((x) + 0x80000000)
41
#endif
41
#endif
42
 
42
 
43
/*
43
/*
44
 * Implementation of generic 4-level page table interface.
44
 * Implementation of generic 4-level page table interface.
45
 * IA-32 has 2-level page tables, so PTL1 and PTL2 are left out.
45
 * IA-32 has 2-level page tables, so PTL1 and PTL2 are left out.