forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/pseries/hvCall.S
....@@ -1,11 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * This file contains the generic code to perform a call to the
34 * pSeries LPAR hypervisor.
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License
7
- * as published by the Free Software Foundation; either version
8
- * 2 of the License, or (at your option) any later version.
95 */
106 #include <linux/jump_label.h>
117 #include <asm/hvcall.h>
....@@ -106,6 +102,16 @@
106102 #define HCALL_BRANCH(LABEL)
107103 #endif
108104
105
+_GLOBAL_TOC(plpar_hcall_norets_notrace)
106
+ HMT_MEDIUM
107
+
108
+ mfcr r0
109
+ stw r0,8(r1)
110
+ HVSC /* invoke the hypervisor */
111
+ lwz r0,8(r1)
112
+ mtcrf 0xff,r0
113
+ blr /* return r3 = status */
114
+
109115 _GLOBAL_TOC(plpar_hcall_norets)
110116 HMT_MEDIUM
111117