Subversion Repositories HelenOS-historic

Rev

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

Rev 957 Rev 967
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __ia32_PAGE_H__
29
#ifndef __ia32_PAGE_H__
30
#define __ia32_PAGE_H__
30
#define __ia32_PAGE_H__
31
 
31
 
-
 
32
#include <arch/mm/frame.h>
-
 
33
 
32
#define PAGE_WIDTH  FRAME_WIDTH
34
#define PAGE_WIDTH  FRAME_WIDTH
33
#define PAGE_SIZE   FRAME_SIZE
35
#define PAGE_SIZE   FRAME_SIZE
34
 
36
 
-
 
37
#ifdef KERNEL
-
 
38
 
35
#ifndef __ASM__
39
#ifndef __ASM__
36
#   define KA2PA(x) (((__address) (x)) - 0x80000000)
40
#   define KA2PA(x) (((__address) (x)) - 0x80000000)
37
#   define PA2KA(x) (((__address) (x)) + 0x80000000)
41
#   define PA2KA(x) (((__address) (x)) + 0x80000000)
38
#else
42
#else
39
#   define KA2PA(x) ((x) - 0x80000000)
43
#   define KA2PA(x) ((x) - 0x80000000)
Line 133... Line 137...
133
 
137
 
134
extern void page_arch_init(void);
138
extern void page_arch_init(void);
135
 
139
 
136
#endif /* __ASM__ */
140
#endif /* __ASM__ */
137
 
141
 
-
 
142
#endif /* KERNEL */
-
 
143
 
138
#endif
144
#endif