ARC: Fix ICCM & DCCM runtime size checks

[ Upstream commit 43900edf67d7ef3ac8909854d75b8a1fba2d570c ]

As of today the ICCM and DCCM size checks are incorrectly using
mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ
and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in
runtime and stored in cpu-> and cpu-> is in bytes.

Fix that.

Reported-by: Paul Greco <>
Signed-off-by: Eugeniy Paltsev <>
Signed-off-by: Vineet Gupta <>
Signed-off-by: Sasha Levin <>
1 file changed