summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ucall.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/ucall.S')
-rw-r--r--arch/powerpc/kernel/ucall.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ucall.S b/arch/powerpc/kernel/ucall.S
new file mode 100644
index 000000000..07296bc39
--- /dev/null
+++ b/arch/powerpc/kernel/ucall.S
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Generic code to perform an ultravisor call.
+ *
+ * Copyright 2019, IBM Corporation.
+ *
+ */
+#include <asm/ppc_asm.h>
+#include <asm/export.h>
+
+_GLOBAL(ucall_norets)
+EXPORT_SYMBOL_GPL(ucall_norets)
+ sc 2 /* Invoke the ultravisor */
+ blr /* Return r3 = status */