SPM: Skip PSP overflow checking when setting PSP Limit
Setting the PSP Limit is a fundamental operation which can be
called at any time by a handler mode code (not using PSP),
even when the PSP is not set then the overflow check panics.
This patch removes unnecessary check.The caller should guarantee
valid values when setting PSP and PSP Limit. Fixes the issue
introduced by commit 9a6d90a247c5f072dfc5368a07539eb3624cf863
NOTE: v6m&v7m do not have hardware PSP Limit register, but the
PSP limit value is still necessary for local storage usage.
Hence a software limit variable is applied for v6m&v7m.
Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Change-Id: I6ee377274d1dc37ac5408838bfaf104277644e62
1 file changed