diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-01-25 09:43:51 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-01-25 09:43:51 +0000 |
commit | f144c83cf0dfca987a10f8df59085cc219dee4a4 (patch) | |
tree | d226232b157b9183038c1ab0f1ce2514f0c09c24 /sys/arch | |
parent | 3419c06b721594e0dac1e52da5d465cebbcd3a73 (diff) |
Add assembly helpers for calling the hypervisor and secure monitor.
ok jsg@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/arm64/support.S | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/support.S b/sys/arch/arm64/arm64/support.S index 8b80391d1bb..c692986d3ce 100644 --- a/sys/arch/arm64/arm64/support.S +++ b/sys/arch/arm64/arm64/support.S @@ -1,4 +1,4 @@ -/* $OpenBSD: support.S,v 1.3 2017/01/24 10:23:11 patrick Exp $ */ +/* $OpenBSD: support.S,v 1.4 2017/01/25 09:43:50 patrick Exp $ */ /*- * Copyright (c) 2014 Andrew Turner * Copyright (c) 2014-2015 The FreeBSD Foundation @@ -110,3 +110,15 @@ ENTRY(pagezero_cache) ret END(pagezero_cache) + +ENTRY(smc_call) + smc #0 + ret + +END(smc_call) + +ENTRY(hvc_call) + hvc #0 + ret + +END(hvc_call) |