Subversion Repositories HelenOS-historic

Rev

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

Rev 188 Rev 194
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __amd64_PAGE_H__
29
#ifndef __amd64_PAGE_H__
30
#define __amd64_PAGE_H__
30
#define __amd64_PAGE_H__
31
 
31
 
-
 
32
#ifndef __ASM__
32
#include <mm/page.h>
33
#  include <mm/page.h>
33
#include <arch/mm/frame.h>
34
#  include <arch/mm/frame.h>
34
#include <arch/types.h>
35
#  include <arch/types.h>
35
#include <arch/mm/ptl.h>
36
#endif
36
 
37
 
37
#define PAGE_SIZE   FRAME_SIZE
38
#define PAGE_SIZE   FRAME_SIZE
38
 
39
 
-
 
40
#ifndef __ASM__
-
 
41
# define KA2PA(x)   (((__address) (x)) + 0x80000000)
-
 
42
# define PA2KA(x)   (((__address) (x)) - 0x80000000)
-
 
43
#else
-
 
44
# define KA2PA(x)   ((x) + 0x80000000)
-
 
45
# define PA2KA(x)   ((x)) - 0x80000000)
-
 
46
#endif
-
 
47
 
39
#define PTL0_INDEX_ARCH(vaddr)      0
48
#define PTL0_INDEX_ARCH(vaddr)      0
40
#define PTL1_INDEX_ARCH(vaddr)      0
49
#define PTL1_INDEX_ARCH(vaddr)      0
41
#define PTL2_INDEX_ARCH(vaddr)      0
50
#define PTL2_INDEX_ARCH(vaddr)      0
42
#define PTL3_INDEX_ARCH(vaddr)      0
51
#define PTL3_INDEX_ARCH(vaddr)      0
43
 
52
 
Line 62... Line 71...
62
#define SET_PTL1_FLAGS_ARCH(ptl0, i, x)
71
#define SET_PTL1_FLAGS_ARCH(ptl0, i, x)
63
#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
72
#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
64
#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
73
#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
65
#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)
74
#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)
66
 
75
 
-
 
76
#ifndef __ASM__
67
extern void page_arch_init(void);
77
extern void page_arch_init(void);
68
 
78
 
69
typedef __u32 pte_t;
79
typedef __u64 pte_t;
-
 
80
#endif
70
 
81
 
71
#endif
82
#endif