lib: sbi: detect features before everything else in sbi_hart_init()
authorAnup Patel <anup.patel@wdc.com>
Sun, 10 May 2020 05:43:00 +0000 (11:13 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 19 May 2020 03:49:32 +0000 (09:19 +0530)
commit28b40528499755ec19a6f8a06dc47e65619fb96c
tree2c24425358a5bd00cebd7aafc84a9c62a6f124a3
parent38a4b54cdc3fd77574c4ef166154819a976e9fa0
lib: sbi: detect features before everything else in sbi_hart_init()

We should detect HART features in sbi_hart_init() before
mstatus_init(), delegate_traps() and pmp_init().

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_hart.c