forked from Imagelibrary/rtems
bsps/arm: L2C 310 avoid infinite loops
This commit is contained in:
@@ -882,6 +882,10 @@ l2c_310_flush_range( const void* d_addr, const size_t n_bytes )
|
||||
L2C_310_MIN( ADDR_LAST, adx + L2C_310_MAX_LOCKING_BYTES );
|
||||
volatile L2CC *l2cc = (volatile L2CC *) BSP_ARM_L2C_310_BASE;
|
||||
|
||||
if ( n_bytes == 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (;
|
||||
adx <= ADDR_LAST;
|
||||
adx = block_end + 1,
|
||||
@@ -946,6 +950,10 @@ l2c_310_invalidate_range( const void* d_addr, const size_t n_bytes )
|
||||
L2C_310_MIN( ADDR_LAST, adx + L2C_310_MAX_LOCKING_BYTES );
|
||||
volatile L2CC *l2cc = (volatile L2CC *) BSP_ARM_L2C_310_BASE;
|
||||
|
||||
if ( n_bytes == 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (;
|
||||
adx <= ADDR_LAST;
|
||||
adx = block_end + 1,
|
||||
|
||||
Reference in New Issue
Block a user