Changes in kernel/generic/include/mm/page.h [ada559c:e49e234] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/page.h
rada559c re49e234 36 36 #define KERN_PAGE_H_ 37 37 38 #include < typedefs.h>38 #include <arch/types.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 *, uintptr_t, uintptr_t, unsigned int); 45 void (* mapping_remove)(as_t *, uintptr_t); 46 pte_t *(* mapping_find)(as_t *, uintptr_t); 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); 47 48 } page_mapping_operations_t; 48 49 … … 50 51 51 52 extern void page_init(void); 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);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); 61 62 62 extern uintptr_t hw_map(uintptr_t , size_t);63 extern uintptr_t hw_map(uintptr_t physaddr, size_t size); 63 64 64 65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.