diff options
Diffstat (limited to 'src/usr/pnor')
-rw-r--r-- | src/usr/pnor/sfc_ast2400.C | 2 | ||||
-rw-r--r-- | src/usr/pnor/sfc_ibm.C | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/pnor/sfc_ast2400.C b/src/usr/pnor/sfc_ast2400.C index 71420fbd0..abb4e61da 100644 --- a/src/usr/pnor/sfc_ast2400.C +++ b/src/usr/pnor/sfc_ast2400.C @@ -101,7 +101,7 @@ errlHndl_t SfcAST2400::readFlash( uint32_t i_addr, do{ uint32_t* word_ptr = static_cast<uint32_t*>(o_data); - uint32_t word_size = i_size/4; + uint32_t word_size = (ALIGN_4(i_size))/4; for( uint32_t words_read = 0; words_read < word_size; words_read ++ ) diff --git a/src/usr/pnor/sfc_ibm.C b/src/usr/pnor/sfc_ibm.C index 7574923b6..acdcfffac 100644 --- a/src/usr/pnor/sfc_ibm.C +++ b/src/usr/pnor/sfc_ibm.C @@ -348,7 +348,7 @@ errlHndl_t SfcIBM::readFlash( uint32_t i_addr, do{ //Read directly from MMIO space uint32_t* word_ptr = static_cast<uint32_t*>(o_data); - uint32_t word_size = i_size/4; + uint32_t word_size = (ALIGN_4(i_size))/4; for( uint32_t words_read = 0; words_read < word_size; words_read ++ ) |