Fixed warnings due to the type changes in vm_translation_map.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8029 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
746bb367c0
commit
ae4a9c5f25
@ -831,7 +831,7 @@ vm_create_anonymous_region(aspace_id aid, const char *name, void **address,
|
|||||||
// the cache object.
|
// the cache object.
|
||||||
addr_t va;
|
addr_t va;
|
||||||
addr_t pa;
|
addr_t pa;
|
||||||
unsigned int flags;
|
uint32 flags;
|
||||||
int err;
|
int err;
|
||||||
vm_page *page;
|
vm_page *page;
|
||||||
off_t offset = 0;
|
off_t offset = 0;
|
||||||
@ -839,8 +839,7 @@ vm_create_anonymous_region(aspace_id aid, const char *name, void **address,
|
|||||||
mutex_lock(&cache_ref->lock);
|
mutex_lock(&cache_ref->lock);
|
||||||
(*aspace->translation_map.ops->lock)(&aspace->translation_map);
|
(*aspace->translation_map.ops->lock)(&aspace->translation_map);
|
||||||
for (va = region->base; va < region->base + region->size; va += PAGE_SIZE, offset += PAGE_SIZE) {
|
for (va = region->base; va < region->base + region->size; va += PAGE_SIZE, offset += PAGE_SIZE) {
|
||||||
err = (*aspace->translation_map.ops->query)(&aspace->translation_map,
|
err = (*aspace->translation_map.ops->query)(&aspace->translation_map, va, &pa, &flags);
|
||||||
va, &pa, &flags);
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
// dprintf("vm_create_anonymous_region: error looking up mapping for va 0x%x\n", va);
|
// dprintf("vm_create_anonymous_region: error looking up mapping for va 0x%x\n", va);
|
||||||
continue;
|
continue;
|
||||||
@ -1273,11 +1272,11 @@ int
|
|||||||
vm_get_page_mapping(aspace_id aid, addr_t vaddr, addr_t *paddr)
|
vm_get_page_mapping(aspace_id aid, addr_t vaddr, addr_t *paddr)
|
||||||
{
|
{
|
||||||
vm_address_space *aspace;
|
vm_address_space *aspace;
|
||||||
unsigned int null_flags;
|
uint32 null_flags;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
aspace = vm_get_aspace_by_id(aid);
|
aspace = vm_get_aspace_by_id(aid);
|
||||||
if(aspace == NULL)
|
if (aspace == NULL)
|
||||||
return ERR_VM_INVALID_ASPACE;
|
return ERR_VM_INVALID_ASPACE;
|
||||||
|
|
||||||
err = aspace->translation_map.ops->query(&aspace->translation_map,
|
err = aspace->translation_map.ops->query(&aspace->translation_map,
|
||||||
@ -2580,7 +2579,7 @@ get_memory_map(const void *address, ulong numBytes, physical_entry *table, long
|
|||||||
status_t status = B_OK;
|
status_t status = B_OK;
|
||||||
int32 index = -1;
|
int32 index = -1;
|
||||||
addr_t offset = 0;
|
addr_t offset = 0;
|
||||||
int flags;
|
uint32 flags;
|
||||||
|
|
||||||
TRACE(("get_memory_map(%p, %lu bytes, %ld entries)\n", address, numBytes, numEntries));
|
TRACE(("get_memory_map(%p, %lu bytes, %ld entries)\n", address, numBytes, numEntries));
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ scan_pages(vm_address_space *aspace, addr free_target)
|
|||||||
vm_page *page;
|
vm_page *page;
|
||||||
addr va;
|
addr va;
|
||||||
addr pa;
|
addr pa;
|
||||||
unsigned int flags, flags2;
|
uint32 flags, flags2;
|
||||||
// int err;
|
// int err;
|
||||||
int quantum = PAGE_SCAN_QUANTUM;
|
int quantum = PAGE_SCAN_QUANTUM;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user