microblaze: Prevent the overflow of the start
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Sat, 11 Jan 2020 13:14:34 +0000 (18:44 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Feb 2020 10:38:59 +0000 (11:38 +0100)
commit061d2c1d593076424c910cb1b64ecdb5c9a6923f
tree97bfdb637af4be57527b9f4318e9fcb0f7bb7958
parent2602276d3d3811b1a48c48113042cd75fcbfc27d
microblaze: Prevent the overflow of the start

In case the start + cache size is more than the max int the
start overflows.
Prevent the same.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/kernel/cpu/cache.c