Subversion Repositories HelenOS-historic

Rev

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

Rev 843 Rev 957
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __ppc32_PAGE_H__
29
#ifndef __ppc32_PAGE_H__
30
#define __ppc32_PAGE_H__
30
#define __ppc32_PAGE_H__
31
 
31
 
32
#include <mm/page.h>
-
 
33
#include <arch/mm/frame.h>
-
 
34
#include <arch/types.h>
-
 
35
 
-
 
36
#define PAGE_WIDTH  FRAME_WIDTH
32
#define PAGE_WIDTH  FRAME_WIDTH
37
#define PAGE_SIZE   FRAME_SIZE
33
#define PAGE_SIZE   FRAME_SIZE
38
 
34
 
-
 
35
#ifndef __ASM__
39
#define KA2PA(x)    ((__address)(x))
36
#   define KA2PA(x) (((__address) (x)) - 0x80000000)
40
#define PA2KA(x)    ((__address)(x))
37
#   define PA2KA(x) (((__address) (x)) + 0x80000000)
-
 
38
#else
-
 
39
#   define KA2PA(x) ((x) - 0x80000000)
-
 
40
#   define PA2KA(x) ((x) + 0x80000000)
-
 
41
#endif
41
 
42
 
42
#define PTL0_ENTRIES_ARCH       0
43
#define PTL0_ENTRIES_ARCH       0
43
#define PTL1_ENTRIES_ARCH       0
44
#define PTL1_ENTRIES_ARCH       0
44
#define PTL2_ENTRIES_ARCH       0
45
#define PTL2_ENTRIES_ARCH       0
45
#define PTL3_ENTRIES_ARCH       0
46
#define PTL3_ENTRIES_ARCH       0
Line 71... Line 72...
71
#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
72
#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
72
#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)
73
#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)
73
 
74
 
74
#define PTE_VALID_ARCH(p)       1
75
#define PTE_VALID_ARCH(p)       1
75
 
76
 
-
 
77
#ifndef __ASM__
-
 
78
 
-
 
79
#include <mm/page.h>
-
 
80
#include <arch/mm/frame.h>
-
 
81
#include <arch/types.h>
-
 
82
 
76
extern void page_arch_init(void);
83
extern void page_arch_init(void);
77
 
84
 
-
 
85
#endif /* __ASM__ */
-
 
86
 
78
#endif
87
#endif