diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2011-12-16 15:52:35 -0600 |
---|---|---|
committer | Douglas R. Gilbert <dgilbert@us.ibm.com> | 2012-01-03 10:50:46 -0600 |
commit | 4251b56d6cf0474aca73b1d7f4c34f33dce42d20 (patch) | |
tree | c60cbc1ea62464cdae0928a30fb3220943c178dc /src/sys | |
parent | 0b377b7e0bf55dca1c220c9fbca497ff76e49f65 (diff) | |
download | talos-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/sys')
-rw-r--r-- | src/sys/vfs/vfs_init.C | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/vfs/vfs_init.C b/src/sys/vfs/vfs_init.C index ad08d0d7f..91e09876f 100644 --- a/src/sys/vfs/vfs_init.C +++ b/src/sys/vfs/vfs_init.C @@ -28,6 +28,7 @@ #include <kernel/console.H> #include <limits.h> #include <sys/mm.h> +#include <util/align.H> VfsSystemModule VFS_MODULES[VFS_MODULE_MAX]; uint64_t VFS_LAST_ADDRESS; @@ -36,7 +37,7 @@ uint64_t VFS_LAST_ADDRESS; int vfs_module_perms(VfsSystemModule* module) { int rc = 0; - uint64_t memsize = (module->page_count*PAGESIZE); + uint64_t memsize = ALIGN_PAGE(module->byte_count); uint64_t textsize= (uint64_t)module->data - (uint64_t)module->text; uint64_t datasize = memsize - textsize; |