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 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __mips32_PAGE_H__
29
#ifndef __mips32_PAGE_H__
30
#define __mips32_PAGE_H__
30
#define __mips32_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
 
35
#ifndef __ASM__
37
#ifndef __ASM__
36
#  define KA2PA(x)  (((__address) (x)) - 0x80000000)
38
#  define KA2PA(x)  (((__address) (x)) - 0x80000000)
Line 38... Line 40...
38
#else
40
#else
39
#  define KA2PA(x)  ((x) - 0x80000000)
41
#  define KA2PA(x)  ((x) - 0x80000000)
40
#  define PA2KA(x)  ((x) + 0x80000000)
42
#  define PA2KA(x)  ((x) + 0x80000000)
41
#endif
43
#endif
42
 
44
 
-
 
45
#ifdef KERNEL
-
 
46
 
43
/*
47
/*
44
 * Implementation of generic 4-level page table interface.
48
 * Implementation of generic 4-level page table interface.
45
 * NOTE: this implementation is under construction
49
 * NOTE: this implementation is under construction
46
 *
50
 *
47
 * Page table layout:
51
 * Page table layout:
Line 132... Line 136...
132
 
136
 
133
extern void page_arch_init(void);
137
extern void page_arch_init(void);
134
 
138
 
135
#endif /* __ASM__ */
139
#endif /* __ASM__ */
136
 
140
 
-
 
141
#endif /* KERNEL */
-
 
142
 
137
#endif
143
#endif