mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-10-06 10:59:48 +08:00
bsps/mips: Move the CPU counter to the BSP
The CPU port listed the placeholder of no_cpu, which counts up by one per read and reports a frequency of one gigahertz. A BSP with real counter hardware could not replace it: the definition is linked with the CPU port, so a second one collides. Every other architecture leaves the CPU counter to the BSP for this reason. Use the identical placeholder of the BSP layer in the six mips BSPs instead. Nothing changes for them, but the way to a real counter is open. Update #5690. Assisted-by: Claude:claude-opus-5 claude-code Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
committed by
Joel Sherrill
parent
67aa0d5a2d
commit
6149ed1cba
@@ -50,6 +50,8 @@ source:
|
||||
- bsps/mips/shared/irq/isr_entries.S
|
||||
- bsps/mips/shared/irq/vectorexceptions.c
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterread.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/serial/console-polled.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
|
||||
@@ -64,6 +64,8 @@ source:
|
||||
- bsps/mips/shared/timer/gettime.S
|
||||
- bsps/mips/shared/timer/timer.c
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterread.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/start/bspreset-loop.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
|
||||
@@ -51,6 +51,8 @@ source:
|
||||
- bsps/mips/shared/irq/isr_entries.S
|
||||
- bsps/mips/shared/irq/vectorexceptions.c
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterread.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/serial/console-polled.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
|
||||
@@ -58,6 +58,8 @@ source:
|
||||
- bsps/mips/shared/start/idttlb.S
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/btimer/btimer-cpucounter.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterread.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/pci/pci_find_device.c
|
||||
- bsps/shared/dev/serial/legacy-console-control.c
|
||||
|
||||
@@ -60,6 +60,8 @@ source:
|
||||
- bsps/mips/shared/timer/gettime.S
|
||||
- bsps/mips/shared/timer/timer.c
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterread.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/start/bspreset-loop.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
|
||||
@@ -58,6 +58,8 @@ source:
|
||||
- bsps/mips/shared/timer/gettime.S
|
||||
- bsps/mips/shared/timer/timer.c
|
||||
- bsps/shared/cache/nocache.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
|
||||
- bsps/shared/dev/cpucounter/cpucounterread.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/start/bspreset-loop.c
|
||||
- bsps/shared/start/gettargethash-default.c
|
||||
|
||||
@@ -30,6 +30,4 @@ source:
|
||||
- cpukit/score/cpu/mips/cpu_asm.S
|
||||
- cpukit/score/cpu/mips/mips-context-validate.S
|
||||
- cpukit/score/cpu/mips/mips-context-volatile-clobber.S
|
||||
- cpukit/score/cpu/no_cpu/cpucounterfrequency.c
|
||||
- cpukit/score/cpu/no_cpu/cpucounterread.c
|
||||
type: build
|
||||
|
||||
Reference in New Issue
Block a user