diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-04-05 11:38:57 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-09-30 12:48:06 +0300 |
commit | 1a5614e971cf44e08342c2b1639fa3be544b0202 (patch) | |
tree | 0afa5525ef174e565eec10f73a4a64a58dc31c72 /lib/sbi/sbi_init.c | |
parent | 0089897d41b5b2382acba1c2c9f9386edad75228 (diff) | |
download | opensbi-1a5614e971cf44e08342c2b1639fa3be544b0202.tar.xz |
lib: Extend sbi_hart_switch_mode() to support hypervisor extension
This patch extends sbi_hart_switch_mode() to support entering
VS/VU modes when hypervisor extension is available.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 4663a30..e1acb57 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -102,7 +102,7 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) sbi_hart_wake_coldboot_harts(scratch, hartid); sbi_hart_mark_available(hartid); sbi_hart_switch_mode(hartid, scratch->next_arg1, scratch->next_addr, - scratch->next_mode); + scratch->next_mode, FALSE); } static void __noreturn init_warmboot(struct sbi_scratch *scratch, u32 hartid) @@ -147,7 +147,8 @@ static void __noreturn init_warmboot(struct sbi_scratch *scratch, u32 hartid) sbi_hart_hang(); else sbi_hart_switch_mode(hartid, scratch->next_arg1, - scratch->next_addr, scratch->next_mode); + scratch->next_addr, + scratch->next_mode, FALSE); } static atomic_t coldboot_lottery = ATOMIC_INITIALIZER(0); |