From f144c83cf0dfca987a10f8df59085cc219dee4a4 Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Wed, 25 Jan 2017 09:43:51 +0000 Subject: Add assembly helpers for calling the hypervisor and secure monitor. ok jsg@ --- sys/arch/arm64/arm64/support.S | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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) -- cgit v1.2.3