Ignore:
File:
1 edited

Legend:

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

    rb93d637 r235e6c7  
    3737
    3838#include <typedefs.h>
    39 #include <proc/task.h>
    4039#include <mm/as.h>
    41 #include <memstr.h>
     40#include <arch/mm/page.h>
     41
     42#define P2SZ(pages) \
     43        ((pages) << PAGE_WIDTH)
    4244
    4345/** Operations to manipulate page mappings. */
     
    4547        void (* mapping_insert)(as_t *, uintptr_t, uintptr_t, unsigned int);
    4648        void (* mapping_remove)(as_t *, uintptr_t);
    47         pte_t *(* mapping_find)(as_t *, uintptr_t);
     49        pte_t *(* mapping_find)(as_t *, uintptr_t, bool);
    4850} page_mapping_operations_t;
    4951
     
    5658extern void page_mapping_insert(as_t *, uintptr_t, uintptr_t, unsigned int);
    5759extern void page_mapping_remove(as_t *, uintptr_t);
    58 extern pte_t *page_mapping_find(as_t *, uintptr_t);
     60extern pte_t *page_mapping_find(as_t *, uintptr_t, bool);
    5961extern pte_t *page_table_create(unsigned int);
    6062extern void page_table_destroy(pte_t *);
     
    6365extern uintptr_t hw_map(uintptr_t, size_t);
    6466
    65 extern sysarg_t sys_page_find_mapping(uintptr_t, uintptr_t *);
    66 
    6767#endif
    6868
Note: See TracChangeset for help on using the changeset viewer.