diff options
| author | Dan Crowell <dcrowell@us.ibm.com> | 2014-01-07 09:30:51 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-01-10 16:19:14 -0600 |
| commit | aa83ebd12d6cf6d6ead06e45ab61d46a53a15be3 (patch) | |
| tree | d6a587a8582ac9d085b08e028c757a0ea94bb825 /src/usr/vfs | |
| parent | ea2a49ff0cd3827458025f75d5b6bd7054d18779 (diff) | |
| download | talos-hostboot-aa83ebd12d6cf6d6ead06e45ab61d46a53a15be3.tar.gz talos-hostboot-aa83ebd12d6cf6d6ead06e45ab61d46a53a15be3.zip | |
Remove leftover fixme/todo and update error callouts
Remove all untagged fixme/todo comments
Adde new parm to error log constructor to avoid extra code in
common software error case
Update error callouts
Add strncpy
Change-Id: I8bd8f48193a96b79db91ed35c4fd485e6da38dba
RTC: 67921
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7921
Tested-by: Jenkins Server
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/vfs')
| -rw-r--r-- | src/usr/vfs/vfsrp.C | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/src/usr/vfs/vfsrp.C b/src/usr/vfs/vfsrp.C index 4d7eeb4b2..96290a757 100644 --- a/src/usr/vfs/vfsrp.C +++ b/src/usr/vfs/vfsrp.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2013 */ +/* COPYRIGHT International Business Machines Corp. 2011,2014 */ /* */ /* p1 */ /* */ @@ -38,6 +38,7 @@ #include "vfsrp.H" #include <pnor/pnorif.H> #include <util/align.H> +#include <errl/errludstring.H> using namespace VFS; @@ -129,7 +130,7 @@ errlHndl_t VfsRp::_init() ); if(rc == 0) { - // TODO set permissions here or are defaults OK? + // Note: permissions are set elsewhere // Start msg_handler // NOTE: This would be a weak consistancy issues if @@ -143,7 +144,7 @@ errlHndl_t VfsRp::_init() * @moduleid VFS_MODULE_ID * @reasoncode VFS_ALLOC_VMEM_FAILED * @userdata1 returncode from mm_alloc_block() - * @userdata2 0 + * @userdata2 Size of memory to allocate * * @devdesc Could not allocate virtual memory. * @@ -154,7 +155,8 @@ errlHndl_t VfsRp::_init() VFS::VFS_MODULE_ID, // moduleid VFS::VFS_ALLOC_VMEM_FAILED, // reason Code rc, // user1 = rc - 0 // user2 + l_pnor_info.size, // user2 = size + true /*Add HB Software Callout*/ ); } } @@ -317,7 +319,7 @@ void VfsRp::_load_unload(msg_t * i_msg) * @moduleid VFS_MODULE_ID * @reasoncode VFS_PERMS_VMEM_FAILED * @userdata1 returncode from mm_set_permission() - * @userdata2 0 + * @userdata2 message type (LOAD or UNLOAD) * * @devdesc Could not set permissions on virtual memory. * @@ -328,8 +330,8 @@ void VfsRp::_load_unload(msg_t * i_msg) VFS::VFS_MODULE_ID, // moduleid VFS_PERMS_VMEM_FAILED, // reason Code rc, // user1 = rc - 0 // user2 = 0 - ); + i_msg->type, // user2 + true /*Add HB Software Callout*/ ); } } else @@ -364,6 +366,10 @@ void VfsRp::_load_unload(msg_t * i_msg) name[0], name[1] ); + err->addProcedureCallout( HWAS::EPUB_PRC_HB_CODE, + HWAS::SRCI_PRIORITY_HIGH ); + err->addProcedureCallout( HWAS::EPUB_PRC_SP_CODE, + HWAS::SRCI_PRIORITY_LOW ); } } i_msg->data[0] = (uint64_t) err; @@ -528,7 +534,8 @@ errlHndl_t VFS::module_load_unload(const char * i_module, VfsMessages i_msgtype) VFS::VFS_MODULE_ID, // moduleid VFS::VFS_LOAD_FAILED, // reason Code rc, // user1 = msg_sendrecv rc - i_msgtype // user2 = message type + i_msgtype, // user2 = message type + true /*Add HB Software Callout*/ ); } @@ -562,12 +569,14 @@ errlHndl_t VFS::module_address(const char * i_name, const char *& o_address, siz if(!vfs || (vfs->text != vfs->data)) { // module not found or is not a data module + uint64_t name[2] = { 0, 0 }; + strncpy( reinterpret_cast<char*>(name), i_name, sizeof(uint64_t)*2 ); /*@ errorlog tag * @errortype ERRL_SEV_INFORMATIONAL * @moduleid VFS_MODULE_ID * @reasoncode VFS_INVALID_DATA_MODULE - * @userdata1 0 - * @userdata2 0 + * @userdata1 First 8 bytes of module name + * @userdata2 Next 8 bytes of module name * * @devdesc Module is not a data module * @@ -577,9 +586,11 @@ errlHndl_t VFS::module_address(const char * i_name, const char *& o_address, siz ERRORLOG::ERRL_SEV_INFORMATIONAL, // severity VFS::VFS_MODULE_ID, // moduleid VFS::VFS_INVALID_DATA_MODULE, // reason Code - 0, - 0 + name[0], + name[1], + true /*Add HB Software Callout*/ ); + ERRORLOG::ErrlUserDetailsString(i_name).addToLog(err); } else { |

