diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-04-05 14:08:57 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-09-30 15:18:06 +0530 |
commit | 1a5614e971cf44e08342c2b1639fa3be544b0202 (patch) | |
tree | 0afa5525ef174e565eec10f73a4a64a58dc31c72 /include/sbi/sbi_hart.h | |
parent | 0089897d41b5b2382acba1c2c9f9386edad75228 (diff) |
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 'include/sbi/sbi_hart.h')
-rw-r--r-- | include/sbi/sbi_hart.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index 4aa4a5c..0762f95 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -26,7 +26,8 @@ void __attribute__((noreturn)) sbi_hart_hang(void); void __attribute__((noreturn)) sbi_hart_switch_mode(unsigned long arg0, unsigned long arg1, - unsigned long next_addr, unsigned long next_mode); + unsigned long next_addr, unsigned long next_mode, + bool next_virt); void sbi_hart_mark_available(u32 hartid); |