[rtems commit] bsp/riscv: Add simple SMP support to clock driver
Sebastian Huber
sebh at rtems.org
Wed Jul 25 08:12:23 UTC 2018
Module: rtems
Branch: master
Commit: bd5603868aac0496ac137f8679ee711656198c42
Changeset: http://git.rtems.org/rtems/commit/?id=bd5603868aac0496ac137f8679ee711656198c42
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jul 23 13:50:02 2018 +0200
bsp/riscv: Add simple SMP support to clock driver
This is a hack. The clock interrupt should be handled by each hart.
Update #3433.
---
bsps/riscv/riscv/clock/clockdrv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsps/riscv/riscv/clock/clockdrv.c b/bsps/riscv/riscv/clock/clockdrv.c
index 4220952..29abc1b 100644
--- a/bsps/riscv/riscv/clock/clockdrv.c
+++ b/bsps/riscv/riscv/clock/clockdrv.c
@@ -156,4 +156,6 @@ uint32_t _CPU_Counter_frequency( void )
#define Clock_driver_support_install_isr(isr) \
riscv_clock_handler_install()
+#define CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR
+
#include "../../../shared/dev/clock/clockimpl.h"
More information about the vc
mailing list