summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_hart.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-04-05 11:38:57 +0300
committerAnup Patel <anup@brainfault.org>2019-09-30 12:48:06 +0300
commit1a5614e971cf44e08342c2b1639fa3be544b0202 (patch)
tree0afa5525ef174e565eec10f73a4a64a58dc31c72 /include/sbi/sbi_hart.h
parent0089897d41b5b2382acba1c2c9f9386edad75228 (diff)
downloadopensbi-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 'include/sbi/sbi_hart.h')
-rw-r--r--include/sbi/sbi_hart.h3
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);