Ignore:
File:
1 edited

Legend:

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

    r235e6c7 rb93d637  
    3737
    3838#include <typedefs.h>
     39#include <proc/task.h>
    3940#include <mm/as.h>
    40 #include <arch/mm/page.h>
    41 
    42 #define P2SZ(pages) \
    43         ((pages) << PAGE_WIDTH)
     41#include <memstr.h>
    4442
    4543/** Operations to manipulate page mappings. */
     
    4745        void (* mapping_insert)(as_t *, uintptr_t, uintptr_t, unsigned int);
    4846        void (* mapping_remove)(as_t *, uintptr_t);
    49         pte_t *(* mapping_find)(as_t *, uintptr_t, bool);
     47        pte_t *(* mapping_find)(as_t *, uintptr_t);
    5048} page_mapping_operations_t;
    5149
     
    5856extern void page_mapping_insert(as_t *, uintptr_t, uintptr_t, unsigned int);
    5957extern void page_mapping_remove(as_t *, uintptr_t);
    60 extern pte_t *page_mapping_find(as_t *, uintptr_t, bool);
     58extern pte_t *page_mapping_find(as_t *, uintptr_t);
    6159extern pte_t *page_table_create(unsigned int);
    6260extern void page_table_destroy(pte_t *);
     
    6563extern uintptr_t hw_map(uintptr_t, size_t);
    6664
     65extern sysarg_t sys_page_find_mapping(uintptr_t, uintptr_t *);
     66
    6767#endif
    6868
Note: See TracChangeset for help on using the changeset viewer.