Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 958 → Rev 1004

/kernel/trunk/genarch/include/mm/page_pt.h
92,10 → 92,9
#define SET_PTL3_FLAGS(ptl2, i, x) SET_PTL3_FLAGS_ARCH(ptl2, i, x)
#define SET_FRAME_FLAGS(ptl3, i, x) SET_FRAME_FLAGS_ARCH(ptl3, i, x)
 
/*
* Determine whether the mapping is valid.
*/
#define PTE_VALID(p) PTE_VALID_ARCH((p))
#define PTE_VALID(p) PTE_VALID_ARCH((p))
#define PTE_PRESENT(p) PTE_PRESENT_ARCH((p))
#define PTE_GET_FRAME(p) PTE_GET_FRAME_ARCH((p))
 
extern page_mapping_operations_t pt_mapping_operations;
 
/kernel/trunk/genarch/include/mm/page_ht.h
46,6 → 46,10
#define PAGE_HT_ENTRIES_BITS 13
#define PAGE_HT_ENTRIES (1<<PAGE_HT_ENTRIES_BITS)
 
#define PTE_VALID_ARCH(pte) ((pte) != NULL)
#define PTE_PRESENT_ARCH(pte) ((pte)->p != 0)
#define PTE_GET_FRAME_ARCH(pte) ((pte)->frame)
 
struct pte {
link_t link; /**< Page hash table link. */
as_t *as; /**< Address space. */