| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file contains the generic code to perform a call to the |
|---|
| 3 | 4 | * 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. |
|---|
| 9 | 5 | */ |
|---|
| 10 | 6 | #include <linux/jump_label.h> |
|---|
| 11 | 7 | #include <asm/hvcall.h> |
|---|
| .. | .. |
|---|
| 106 | 102 | #define HCALL_BRANCH(LABEL) |
|---|
| 107 | 103 | #endif |
|---|
| 108 | 104 | |
|---|
| 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 | + |
|---|
| 109 | 115 | _GLOBAL_TOC(plpar_hcall_norets) |
|---|
| 110 | 116 | HMT_MEDIUM |
|---|
| 111 | 117 | |
|---|