.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | | - * This program is free software; you can redistribute it and/or modify |
---|
3 | | - * it under the terms of the GNU General Public License, version 2, as |
---|
4 | | - * published by the Free Software Foundation. |
---|
5 | | - * |
---|
6 | | - * This program is distributed in the hope that it will be useful, |
---|
7 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
8 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
9 | | - * GNU General Public License for more details. |
---|
10 | | - * |
---|
11 | | - * You should have received a copy of the GNU General Public License |
---|
12 | | - * along with this program; if not, write to the Free Software |
---|
13 | | - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
14 | 3 | * |
---|
15 | 4 | * Copyright SUSE Linux Products GmbH 2010 |
---|
16 | 5 | * |
---|
.. | .. |
---|
178 | 167 | * R12 = (guest CR << 32) | exit handler id |
---|
179 | 168 | * R13 = PACA |
---|
180 | 169 | * HSTATE.SCRATCH0 = guest R12 |
---|
181 | | - * HSTATE.SCRATCH1 = guest CTR if RELOCATABLE |
---|
182 | 170 | */ |
---|
183 | 171 | #ifdef CONFIG_PPC64 |
---|
184 | 172 | /* Match 32-bit entry */ |
---|
185 | | -#ifdef CONFIG_RELOCATABLE |
---|
186 | | - std r9, HSTATE_SCRATCH2(r13) |
---|
187 | | - ld r9, HSTATE_SCRATCH1(r13) |
---|
188 | | - mtctr r9 |
---|
189 | | - ld r9, HSTATE_SCRATCH2(r13) |
---|
190 | | -#endif |
---|
191 | 173 | rotldi r12, r12, 32 /* Flip R12 halves for stw */ |
---|
192 | 174 | stw r12, HSTATE_SCRATCH1(r13) /* CR is now in the low half */ |
---|
193 | 175 | srdi r12, r12, 32 /* shift trap into low half */ |
---|