From 2928b71a69778c45c129788da24678a53ff3f562 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 9 Oct 2022 18:37:20 -0400 Subject: mips: Work around an issue with GCC 8. Change-Id: I9867674978ab6d4c99f5fa67c93e5b830531aefd --- firmware/target/mips/mmu-mips.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'firmware/target') diff --git a/firmware/target/mips/mmu-mips.h b/firmware/target/mips/mmu-mips.h index b8f5ff0143..ca865f9909 100644 --- a/firmware/target/mips/mmu-mips.h +++ b/firmware/target/mips/mmu-mips.h @@ -36,7 +36,11 @@ void map_address(unsigned long virtual, unsigned long physical, void mmu_init(void); /* Commits entire DCache */ -MIPS_CACHEFUNC_API(void, commit_dcache, (void)); +#if 0 /* NOTE: This is currently aliased to commit_discard_dcache. Causes compilation errors with newer GCC if we try to assign it to a section here */ +//MIPS_CACHEFUNC_API(void, commit_dcache, (void)); +#else +void commit_dcache(void); +#endif /* Commit and discard entire DCache, will do writeback */ MIPS_CACHEFUNC_API(void, commit_discard_dcache, (void)); -- cgit v1.2.3