hujun260 opened a new pull request, #22518: URL: https://github.com/apache/nuttx/pull/22518
## Summary - Use the Cortex-M55/M85 CACR offset (`0x10008`) for ARMv8-M. - Restore the Cortex-M7 CACR offset (`0x0f9c`) for other Cortex-M architectures. - Fix `CONFIG_ARMV7M_DCACHE_WRITETHROUGH` writing `NVIC_CACR_FORCEWT` to the wrong address on Cortex-M7. ## Testing - Built and booted `mps2-an500:nsh` under QEMU (Cortex-M7 / ARMv7-M). - NSH started successfully and `ostest` was launched. The captured output below is partial; it does not show the final `ostest` result. ```text nx_start: Entry uart_register: Registering /dev/console uart_register: Registering /dev/ttyS0 work_start_highpri: Starting high-priority kernel worker thread(s) nxtask_activate: hpwork pid=1,TCB=0x600052c0 nxtask_activate: AppBringUp pid=2,TCB=0x600063a8 nx_start_application: Starting init thread task_spawn: name=nsh_main entry=0x16a75 file_actions=0 attr=0x60007434 argv=0x60007448 nxtask_activate: nsh_main pid=3,TCB=0x60007578 nxtask_exit: AppBringUp pid=2,TCB=0x600063a8 lib_cxx_initialize: _sinit: 0x61b98 _einit: 0x61b98 NuttShell (NSH) NuttX-13.1.1-RC0 nsh> nx_start: CPU0: Beginning Idle Loop nsh> nsh> ostest task_spawn: name=ostest entry=0x3b811 file_actions=0x600086f0 attr=0x600086f4 argv=0x600087e8 spawn_execattrs: Setting policy=1 priority=100 for pid=4 nxtask_activate: ostest pid=4,TCB=0x600066c0 stdio_test: write fd=1 stdio_test: Standard I/O Check: printf stdio_test: write fd=2 stdio_test: Standard I/O Check: fprintf to stderr ostest_main: putenv(Variable1=BadValue3) ostest_main: setenv(Variable1, GoodValue1, TRUE) ostest_main: setenv(Variable2, BadValue1, FALSE) ostest_main: setenv(Variable2, GoodValue2, TRUE) ostest_main: setenv(Variable3, GoodValue3, FALSE) ostest_main: setenv(Variable3, BadValue2, FALSE) show_variable: Variable=Variable1 has value=GoodValue1 show_variable: Variable=Variable2 has value=GoodValue2 show_variable: Variable=Variable3 has value=GoodValue3 nxtask_activate: ostest pi ``` Related to #22374 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
