From b677a9b8d641f1c16a4f8f52e00019a9bc747893 Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Tue, 11 Feb 2020 17:32:37 -0800 Subject: lib: Implement hart hotplug This patch adds support for hart hotplug in OpenSBI using a generic WFI based approach. Hart hotplug can be achieved via SBI HSM extension which allows supervisor mode software to start or stop any harts anytime. Any platform wishes to implement platform specific hart hotplug must implement both hart_start and hart_stop in addition to enable platform feature SBI_PLATFORM_HAS_HART_HOTPLUG. Signed-off-by: Atish Patra Reviewed-by: Anup Patel --- include/sbi/sbi_error.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sbi/sbi_error.h') diff --git a/include/sbi/sbi_error.h b/include/sbi/sbi_error.h index 4b7dd12..91ba2ee 100644 --- a/include/sbi/sbi_error.h +++ b/include/sbi/sbi_error.h @@ -28,6 +28,7 @@ #define SBI_ETRAP -13 #define SBI_EUNKNOWN -14 #define SBI_ENOENT -15 +#define SBI_EALREADY_STARTED -16 /* clang-format on */ -- cgit v1.2.3