Subversion Repositories HelenOS

Rev

Rev 1857 | Rev 2007 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1857 Rev 1978
Line 46... Line 46...
46
 
46
 
47
#include <mm/page.h>
47
#include <mm/page.h>
48
#include <arch/types.h>
48
#include <arch/types.h>
49
#include <genarch/mm/page_ht.h>
49
#include <genarch/mm/page_ht.h>
50
 
50
 
-
 
51
extern uintptr_t physmem_base;
-
 
52
 
51
#define KA2PA(x)    ((uintptr_t) (x))
53
#define KA2PA(x)    (((uintptr_t) (x)) + physmem_base)
52
#define PA2KA(x)    ((uintptr_t) (x))
54
#define PA2KA(x)    (((uintptr_t) (x)) - physmem_base)
53
 
55
 
54
union page_address {
56
union page_address {
55
    uintptr_t address;
57
    uintptr_t address;
56
    struct {
58
    struct {
57
        uint64_t vpn : 51;      /**< Virtual Page Number. */
59
        uint64_t vpn : 51;      /**< Virtual Page Number. */