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 0000000000..80a1f9a430
--- /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 <linux/export.h>
+#include <asm/ppc_asm.h>
+
+_GLOBAL(ucall_norets)
+EXPORT_SYMBOL_GPL(ucall_norets)
+ sc 2 /* Invoke the ultravisor */
+ blr /* Return r3 = status */