Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/page.h

    rada559c r235e6c7  
    3838#include <typedefs.h>
    3939#include <mm/as.h>
    40 #include <memstr.h>
     40#include <arch/mm/page.h>
     41
     42#define P2SZ(pages) \
     43        ((pages) << PAGE_WIDTH)
    4144
    4245/** Operations to manipulate page mappings. */
     
    4447        void (* mapping_insert)(as_t *, uintptr_t, uintptr_t, unsigned int);
    4548        void (* mapping_remove)(as_t *, uintptr_t);
    46         pte_t *(* mapping_find)(as_t *, uintptr_t);
     49        pte_t *(* mapping_find)(as_t *, uintptr_t, bool);
    4750} page_mapping_operations_t;
    4851
     
    5558extern void page_mapping_insert(as_t *, uintptr_t, uintptr_t, unsigned int);
    5659extern void page_mapping_remove(as_t *, uintptr_t);
    57 extern pte_t *page_mapping_find(as_t *, uintptr_t);
     60extern pte_t *page_mapping_find(as_t *, uintptr_t, bool);
    5861extern pte_t *page_table_create(unsigned int);
    5962extern void page_table_destroy(pte_t *);
Note: See TracChangeset for help on using the changeset viewer.