[PATCH v2 2/3] cache: Check dcache availability before calling cache functions
Tom Rini
trini at konsulko.com
Thu Aug 14 16:28:22 CEST 2025
On Thu, Aug 14, 2025 at 11:17:40AM +0800, Boon Khai Ng wrote:
> When the data cache (dcache) is disabled, calling related
> status functions can lead to compilation errors due to
> undefined references.
>
> Adding a !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) check before
> invoking dcache_status() (used in common/memsize.c:get_ram_size())
> and mmu_status() (from arch/arm/include/asm/io.h).
>
> Without this check, builds with dcache disabled will fail to compile.
>
> Signed-off-by: Boon Khai Ng <boon.khai.ng at altera.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250814/86f56992/attachment.sig>
More information about the U-Boot
mailing list