lib: sbi_platform: expose hart_features to extension_init callback
authorHeiko Stuebner <heiko@sntech.de>
Tue, 4 Oct 2022 16:42:25 +0000 (18:42 +0200)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Oct 2022 04:22:05 +0000 (09:52 +0530)
commit4f2acb53e21af805e499f7f594a931af9b0623fd
tree6baf642377f1e1c81b9687e79852c6d982d664f3
parentc316fa38c264a1c01f178621e79a8c451f5f5a46
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>
include/sbi/sbi_platform.h
lib/sbi/sbi_hart.c