summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2022-10-04 19:42:25 +0300
committerAnup Patel <anup@brainfault.org>2022-10-13 07:22:05 +0300
commit4f2acb53e21af805e499f7f594a931af9b0623fd (patch)
tree6baf642377f1e1c81b9687e79852c6d982d664f3 /lib
parentc316fa38c264a1c01f178621e79a8c451f5f5a46 (diff)
downloadopensbi-4f2acb53e21af805e499f7f594a931af9b0623fd.tar.xz
lib: sbi_platform: expose hart_features to extension_init callback
The platform-specific extension_init callback is supposed to set specific things for the platform opensbi is running on. So it's also the right place to override specific hart_features if needed - when it's know that autodetection has provided wrong results for example. Suggested-by: Atish Patra <atishp@atishpatra.org> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi/sbi_hart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c
index d0a6295..dacab1a 100644
--- a/lib/sbi/sbi_hart.c
+++ b/lib/sbi/sbi_hart.c
@@ -672,7 +672,8 @@ __mhpm_skip:
}
/* Let platform populate extensions */
- rc = sbi_platform_extensions_init(sbi_platform_thishart_ptr());
+ rc = sbi_platform_extensions_init(sbi_platform_thishart_ptr(),
+ hfeatures);
if (rc)
return rc;