nuttx/arch/mips/src/mips32
Daniel P. Carvalho acc7d9bd3c
Some checks failed
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
Build Documentation / build-html (push) Has been cancelled
arch/mips/pic32mz: initialize both L1 caches when KSEG0 is cacheable.
The Config.K0 cache algorithm applies to both the I- and the D-Cache,
but the startup code only initialized the tags of the caches that were
selected in Kconfig.  With only MIPS32_ICACHE the D-Cache was enabled
with indeterminate tags.  Initialize the tags of both caches whenever
K0 is made cacheable (like the XC32 startup code does), and add the
missing hazard barrier after writing Config.

MIPS32_ICACHE now selects MIPS32_DCACHE when the chip has one, so that
the D-Cache maintenance needed for DMA is built whenever the D-Cache is
in use.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
2026-10-04 17:16:09 -03:00
..
fork.S !sched/arch/libc: Give fork() and vfork() their real, separate semantics. 2026-08-10 08:57:30 -03:00
Kconfig arch/mips/pic32mz: initialize both L1 caches when KSEG0 is cacheable. 2026-10-04 17:16:09 -03:00
mips32-memorymap.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_cache.S arch/mips/mips32: fix the L1 cache maintenance functions. 2026-10-04 17:16:09 -03:00
mips_copystate.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_doirq.c arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
mips_fork.c !sched/arch/libc: Give fork() and vfork() their real, separate semantics. 2026-08-10 08:57:30 -03:00
mips_fork.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_initialstate.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_irq.c arch/mips: Add option to use mips syscall instruction for syscalls 2026-07-11 14:58:24 -03:00
mips_registerdump.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mips_saveusercontext.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_schedulesigaction.c arch/mips: Add option to use mips syscall instruction for syscalls 2026-07-11 14:58:24 -03:00
mips_sigdeliver.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mips_swint0.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mips_switchcontext.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mips_syscall0.S arch/mips: Add option to use mips syscall instruction for syscalls 2026-07-11 14:58:24 -03:00
Toolchain.defs arch, boards, cmake: Build C++ ELF modules without __cxa_atexit. 2026-09-04 15:44:24 -03:00