Changes in kernel/generic/include/mm/page.h [e49e234:ada559c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/page.h
re49e234 rada559c 36 36 #define KERN_PAGE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <mm/as.h> 40 40 #include <memstr.h> … … 42 42 /** Operations to manipulate page mappings. */ 43 43 typedef struct { 44 void (* mapping_insert)(as_t *as, uintptr_t page, uintptr_t frame, 45 int flags); 46 void (* mapping_remove)(as_t *as, uintptr_t page); 47 pte_t *(* mapping_find)(as_t *as, uintptr_t page); 44 void (* mapping_insert)(as_t *, uintptr_t, uintptr_t, unsigned int); 45 void (* mapping_remove)(as_t *, uintptr_t); 46 pte_t *(* mapping_find)(as_t *, uintptr_t); 48 47 } page_mapping_operations_t; 49 48 … … 51 50 52 51 extern void page_init(void); 53 extern void page_table_lock(as_t * as, bool lock);54 extern void page_table_unlock(as_t * as, bool unlock);55 extern void page_mapping_insert(as_t *as, uintptr_t page, uintptr_t frame,56 int flags);57 extern void page_mapping_remove(as_t * as, uintptr_t page);58 extern pte_t *page_mapping_find(as_t * as, uintptr_t page);59 extern pte_t *page_table_create( int flags);60 extern void page_table_destroy(pte_t * page_table);61 extern void map_structure(uintptr_t s, size_t size);52 extern void page_table_lock(as_t *, bool); 53 extern void page_table_unlock(as_t *, bool); 54 extern bool page_table_locked(as_t *); 55 extern void page_mapping_insert(as_t *, uintptr_t, uintptr_t, unsigned int); 56 extern void page_mapping_remove(as_t *, uintptr_t); 57 extern pte_t *page_mapping_find(as_t *, uintptr_t); 58 extern pte_t *page_table_create(unsigned int); 59 extern void page_table_destroy(pte_t *); 60 extern void map_structure(uintptr_t, size_t); 62 61 63 extern uintptr_t hw_map(uintptr_t physaddr, size_t size);62 extern uintptr_t hw_map(uintptr_t, size_t); 64 63 65 64 #endif
Note:
See TracChangeset
for help on using the changeset viewer.