walnux/arch
Jinliang Li 5fb0c44f38 arm/armv8-r: optimize generic timer initialization
1. Enable timer and irq finally to make sure timer callback was already
   registered. When the CPU resets, the values of some generic timer
   registers are undefined. Enabling the timer interrupt in advance may
   cause the timer to trigger early while the timer callback is not yet
   registered. This results in the timer ISR being executed, which masks
   the timer interrupt. Since the timer callback is not registered at
   this point, the timer interrupt is not unmasked, further causing the
   system scheduler to hang.
2. Remove timer mask for one-shot timer and that's in isr,
   irq/fiq is disabled. Masking generic timer is not necessary, and it
   may introduce risks, otherwise, mask/unmask must be pair in all
   situations.

Signed-off-by: Jinliang Li <lijinliang1@lixiang.com>
2024-10-25 13:17:08 +08:00
..
arm arm/armv8-r: optimize generic timer initialization 2024-10-25 13:17:08 +08:00
arm64 kconfig: Add link parameters that can print remaining memory information 2024-10-25 00:55:50 +08:00
avr nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
ceva tools: Rename apps-or-nuttx-Make.defs to Make.defs 2024-10-17 07:55:02 +08:00
dummy
hc nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
mips nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
misoc nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
or1k nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
renesas nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
risc-v kconfig: Add link parameters that can print remaining memory information 2024-10-25 00:55:50 +08:00
sim sim/cmake: compatible when nuttx COMPILE_OPTIONS is not set yet 2024-10-24 21:42:06 +08:00
sparc tools: Rename apps-or-nuttx-Make.defs to Make.defs 2024-10-17 07:55:02 +08:00
tricore syslog: convert \n to \r\n in syslog framework layer 2024-10-17 02:29:51 +08:00
x86 nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
x86_64 nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
xtensa nuttx: Add LIBSUPCXX_TOOLCHAIN to link the prebuilt library provide by toolchain. 2024-10-24 01:38:03 +08:00
z16 tools: Rename apps-or-nuttx-Make.defs to Make.defs 2024-10-17 07:55:02 +08:00
z80 tools: Rename apps-or-nuttx-Make.defs to Make.defs 2024-10-17 07:55:02 +08:00
CMakeLists.txt greenhills: fix the arch_interface archive error 2024-09-27 23:39:56 +08:00
Kconfig arch/Kconfig: remove ARCH_MATH_H if LIBCXX 2024-10-24 17:44:22 +08:00