Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1780
Line 44... Line 44...
44
 
44
 
45
#include <mm/page.h>
45
#include <mm/page.h>
46
#include <arch/types.h>
46
#include <arch/types.h>
47
#include <genarch/mm/page_ht.h>
47
#include <genarch/mm/page_ht.h>
48
 
48
 
49
#define KA2PA(x)    ((__address) (x))
49
#define KA2PA(x)    ((uintptr_t) (x))
50
#define PA2KA(x)    ((__address) (x))
50
#define PA2KA(x)    ((uintptr_t) (x))
51
 
51
 
52
union page_address {
52
union page_address {
53
    __address address;
53
    uintptr_t address;
54
    struct {
54
    struct {
55
        __u64 vpn : 51;     /**< Virtual Page Number. */
55
        uint64_t vpn : 51;      /**< Virtual Page Number. */
56
        unsigned offset : 13;   /**< Offset. */
56
        unsigned offset : 13;   /**< Offset. */
57
    } __attribute__ ((packed));
57
    } __attribute__ ((packed));
58
};
58
};
59
 
59
 
60
typedef union page_address page_address_t;
60
typedef union page_address page_address_t;