/* Compute the lock range associated with the given address range.  */
static void compute_lock_range(uint32_t ul_start, uint32_t ul_end, uint32_t *pul_actual_start, uint32_t *pul_actual_end)
/* Compute the lock range associated with the given address range.  */
static void compute_lock_range(uint32_t ul_start, uint32_t ul_end, uint32_t *pul_actual_start, uint32_t *pul_actual_end)
{
	uint32_t ul_actual_start, ul_actual_end;
	ul_actual_start = ul_start - (ul_start % IFLASH_LOCK_REGION_SIZE);
	ul_actual_end = ul_end - (ul_end % IFLASH_LOCK_REGION_SIZE) +
			IFLASH_LOCK_REGION_SIZE - 1;
	if (pul_actual_start) {
		*pul_actual_start = ul_actual_start;
	}
	if (pul_actual_end) {
		*pul_actual_end = ul_actual_end;
	}
}