summaryrefslogtreecommitdiffstats
path: root/src/usr/vfs
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2011-12-16 15:52:35 -0600
committerDouglas R. Gilbert <dgilbert@us.ibm.com>2012-01-03 10:50:46 -0600
commit4251b56d6cf0474aca73b1d7f4c34f33dce42d20 (patch)
treec60cbc1ea62464cdae0928a30fb3220943c178dc /src/usr/vfs
parent0b377b7e0bf55dca1c220c9fbca497ff76e49f65 (diff)
downloadtalos-hostboot-4251b56d6cf0474aca73b1d7f4c34f33dce42d20.tar.gz
talos-hostboot-4251b56d6cf0474aca73b1d7f4c34f33dce42d20.zip
Change VFS to return non page aligned size in types
Change-Id: Id4d7c03b65a2c15e434e8282691d0cc4c9961267 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/584 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/vfs')
-rw-r--r--src/usr/vfs/vfsrp.C6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/vfs/vfsrp.C b/src/usr/vfs/vfsrp.C
index 6f8f41620..e060c7b80 100644
--- a/src/usr/vfs/vfsrp.C
+++ b/src/usr/vfs/vfsrp.C
@@ -283,12 +283,12 @@ void VfsRp::_load_unload(msg_t * i_msg)
}
rc = mm_set_permission(module->text,
- module->page_count*PAGESIZE,
+ ALIGN_PAGE(module->byte_count),
NO_ACCESS);
rc = mm_remove_pages(RELEASE,
module->text,
- module->page_count*PAGESIZE);
+ ALIGN_PAGE(module->byte_count));
}
if(rc)
{
@@ -513,7 +513,7 @@ errlHndl_t VFS::module_address(const char * i_name, const char *& o_address, siz
else
{
o_address = (const char *)vfs->data;
- o_size = vfs->page_count * PAGESIZE;
+ o_size = vfs->byte_count;
}
return err;
}
OpenPOWER on IntegriCloud