diff --git a/headers/private/kernel/vm_translation_map.h b/headers/private/kernel/vm_translation_map.h index 294abd973c..f06b4aaa73 100755 --- a/headers/private/kernel/vm_translation_map.h +++ b/headers/private/kernel/vm_translation_map.h @@ -25,17 +25,17 @@ typedef struct vm_translation_map_struct { // table of operations the vm may want to do to this mapping typedef struct vm_translation_map_ops_struct { void (*destroy)(vm_translation_map *); - int (*lock)(vm_translation_map*); - int (*unlock)(vm_translation_map*); - int (*map)(vm_translation_map *map, addr va, addr pa, unsigned int attributes); - int (*unmap)(vm_translation_map *map, addr start, addr end); - int (*query)(vm_translation_map *map, addr va, addr *out_physical, unsigned int *out_flags); - addr (*get_mapped_size)(vm_translation_map*); - int (*protect)(vm_translation_map *map, addr base, addr top, unsigned int attributes); - int (*clear_flags)(vm_translation_map *map, addr va, unsigned int flags); + status_t (*lock)(vm_translation_map*); + status_t (*unlock)(vm_translation_map*); + status_t (*map)(vm_translation_map *map, addr_t va, addr_t pa, uint32 attributes); + status_t (*unmap)(vm_translation_map *map, addr_t start, addr_t end); + status_t (*query)(vm_translation_map *map, addr_t va, addr_t *_outPhysical, uint32 *_outFlags); + addr_t (*get_mapped_size)(vm_translation_map*); + status_t (*protect)(vm_translation_map *map, addr_t base, addr_t top, uint32 attributes); + status_t (*clear_flags)(vm_translation_map *map, addr_t va, uint32 flags); void (*flush)(vm_translation_map *map); - int (*get_physical_page)(addr physical_address, addr *out_virtual_address, int flags); - int (*put_physical_page)(addr virtual_address); + status_t (*get_physical_page)(addr_t physical_address, addr_t *out_virtual_address, uint32 flags); + status_t (*put_physical_page)(addr_t virtual_address); } vm_translation_map_ops; // ToDo: fix this