Subversion Repositories HelenOS-historic

Rev

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

Rev 1063 Rev 1064
Line 59... Line 59...
59
    if (x > 0xffffffff80000000)
59
    if (x > 0xffffffff80000000)
60
        return x - 0xffffffff80000000;
60
        return x - 0xffffffff80000000;
61
    else
61
    else
62
        return x - 0xffff800000000000;
62
        return x - 0xffff800000000000;
63
}
63
}
64
/* Linker symbol */
-
 
65
extern int ktext_start;
-
 
66
extern int kdata_end;
-
 
67
static inline __address pa2ka(__address x)
-
 
68
{
-
 
69
    if (x >= ka2pa((__address)(&kdata_end)) || \
-
 
70
        x <= ka2pa((__address)&ktext_start))
-
 
71
        return x + 0xffff800000000000;
-
 
72
    else
-
 
73
        return x + 0xffffffff80000000;
-
 
74
}
-
 
75
# define KA2PA(x)      ka2pa((__address)x)
64
# define KA2PA(x)      ka2pa((__address)x)
76
# define PA2KA(x)      pa2ka((__address)x)
-
 
77
# define PA2KA_IDENT(x)      (((__address) (x)) + 0xffff800000000000)
-
 
78
# define PA2KA_CODE(x)      (((__address) (x)) + 0xffffffff80000000)
65
# define PA2KA_CODE(x)      (((__address) (x)) + 0xffffffff80000000)
-
 
66
# define PA2KA(x)      (((__address) (x)) + 0xffff800000000000)
79
#else
67
#else
80
# define KA2PA(x)      ((x) - 0xffffffff80000000)
68
# define KA2PA(x)      ((x) - 0xffffffff80000000)
81
# define PA2KA(x)      ((x) + 0xffffffff80000000)
69
# define PA2KA(x)      ((x) + 0xffffffff80000000)
82
# define PA2KA_DATA(x)      ((x) + 0xffff800000000000)
-
 
83
#endif
70
#endif
84
 
71
 
85
#define PTL0_ENTRIES_ARCH   512
72
#define PTL0_ENTRIES_ARCH   512
86
#define PTL1_ENTRIES_ARCH   512
73
#define PTL1_ENTRIES_ARCH   512
87
#define PTL2_ENTRIES_ARCH   512
74
#define PTL2_ENTRIES_ARCH   512