allwinner: Fix incorrect ARISC code patch offset check
The current range check for the offset is wrong: it is counting bytes,
while indexing an array of uint32_t. Since the offset is always zero,
the parameter is unnecessary. Instead of adding more code to fix the
check, remove the parameter to avoid the problem entirely.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Change-Id: Iadfc7d027155adc754e017b3462233ce9a1d64f6
1 parent 87b582e commit 5cffedcec2c0dda50e4172e0cfd769b0e6ad665c
@Samuel Holland Samuel Holland authored on 20 Oct 2019
Showing 3 changed files
View
plat/allwinner/common/include/sunxi_private.h
View
plat/allwinner/common/sunxi_common.c
View
plat/allwinner/common/sunxi_cpu_ops.c