summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/epapr_hcalls.S
diff options
context:
space:
mode:
authorLiu Yu-B13201 <Yu.Liu@freescale.com>2012-03-15 11:52:13 +0100
committerAlexander Graf <agraf@suse.de>2012-05-30 11:43:10 +0200
commit2e1ae9c07df5956ebab19144aa0da58ea37c9f69 (patch)
tree5ec9b74d22b72af3691897921ca6bce76ea7d4aa /arch/powerpc/kernel/epapr_hcalls.S
parentopenrisc: use generic strnlen_user() function (diff)
downloadlinux-2e1ae9c07df5956ebab19144aa0da58ea37c9f69.tar.xz
linux-2e1ae9c07df5956ebab19144aa0da58ea37c9f69.zip
KVM: PPC: Factor out guest epapr initialization
epapr paravirtualization support is now a Kconfig selectable option Signed-off-by: Liu Yu <yu.liu@freescale.com> [stuart.yoder@freescale.com: misc minor fixes, description update] Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kernel/epapr_hcalls.S')
-rw-r--r--arch/powerpc/kernel/epapr_hcalls.S25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/epapr_hcalls.S b/arch/powerpc/kernel/epapr_hcalls.S
new file mode 100644
index 000000000000..697b390ebfd8
--- /dev/null
+++ b/arch/powerpc/kernel/epapr_hcalls.S
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2012 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#include <linux/threads.h>
+#include <asm/reg.h>
+#include <asm/page.h>
+#include <asm/cputable.h>
+#include <asm/thread_info.h>
+#include <asm/ppc_asm.h>
+#include <asm/asm-offsets.h>
+
+/* Hypercall entry point. Will be patched with device tree instructions. */
+.global epapr_hypercall_start
+epapr_hypercall_start:
+ li r3, -1
+ nop
+ nop
+ nop
+ blr