Subversion Repositories HelenOS-historic

Rev

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

Rev 832 Rev 967
Line 29... Line 29...
29
#ifndef __amd64_PAGE_H__
29
#ifndef __amd64_PAGE_H__
30
#define __amd64_PAGE_H__
30
#define __amd64_PAGE_H__
31
 
31
 
32
#include <arch/mm/frame.h>
32
#include <arch/mm/frame.h>
33
 
33
 
-
 
34
#define PAGE_WIDTH  FRAME_WIDTH
-
 
35
#define PAGE_SIZE   FRAME_SIZE
-
 
36
 
-
 
37
#ifdef KERNEL
-
 
38
 
34
#ifndef __ASM__
39
#ifndef __ASM__
35
#  include <mm/page.h>
40
#  include <mm/page.h>
36
#  include <arch/types.h>
41
#  include <arch/types.h>
37
#endif
42
#endif
38
 
43
 
39
#define PAGE_WIDTH  FRAME_WIDTH
-
 
40
#define PAGE_SIZE   FRAME_SIZE
-
 
41
 
-
 
42
#ifndef __ASM__
44
#ifndef __ASM__
43
# define KA2PA(x)      (((__address) (x)) - 0xffffffff80000000)
45
# define KA2PA(x)      (((__address) (x)) - 0xffffffff80000000)
44
# define PA2KA(x)      (((__address) (x)) + 0xffffffff80000000)
46
# define PA2KA(x)      (((__address) (x)) + 0xffffffff80000000)
45
#else
47
#else
46
# define KA2PA(x)      ((x) - 0xffffffff80000000)
48
# define KA2PA(x)      ((x) - 0xffffffff80000000)
Line 140... Line 142...
140
    p->soft_valid = 1;
142
    p->soft_valid = 1;
141
}
143
}
142
 
144
 
143
extern void page_arch_init(void);
145
extern void page_arch_init(void);
144
 
146
 
-
 
147
#endif /* __ASM__ */
-
 
148
 
145
#endif
149
#endif /* KERNEL */
146
 
150
 
147
#endif
151
#endif