.. | .. |
---|
| 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 (C) 2010-2011 Freescale Semiconductor, Inc. |
---|
16 | 5 | * |
---|
.. | .. |
---|
445 | 434 | #endif |
---|
446 | 435 | |
---|
447 | 436 | /* Switch to kernel stack and jump to handler. */ |
---|
448 | | - PPC_LL r3, HOST_RUN(r1) |
---|
| 437 | + mr r3, r4 |
---|
449 | 438 | mr r5, r14 /* intno */ |
---|
450 | 439 | mr r14, r4 /* Save vcpu pointer. */ |
---|
| 440 | + mr r4, r5 |
---|
451 | 441 | bl kvmppc_handle_exit |
---|
452 | 442 | |
---|
453 | 443 | /* Restore vcpu pointer and the nonvolatiles we used. */ |
---|
.. | .. |
---|
536 | 526 | blr |
---|
537 | 527 | |
---|
538 | 528 | /* Registers: |
---|
539 | | - * r3: kvm_run pointer |
---|
540 | | - * r4: vcpu pointer |
---|
| 529 | + * r3: vcpu pointer |
---|
541 | 530 | */ |
---|
542 | 531 | _GLOBAL(__kvmppc_vcpu_run) |
---|
543 | 532 | stwu r1, -HOST_STACK_SIZE(r1) |
---|
544 | | - PPC_STL r1, VCPU_HOST_STACK(r4) /* Save stack pointer to vcpu. */ |
---|
| 533 | + PPC_STL r1, VCPU_HOST_STACK(r3) /* Save stack pointer to vcpu. */ |
---|
545 | 534 | |
---|
546 | 535 | /* Save host state to stack. */ |
---|
547 | | - PPC_STL r3, HOST_RUN(r1) |
---|
| 536 | + mr r4, r3 |
---|
548 | 537 | mflr r3 |
---|
549 | 538 | mfcr r5 |
---|
550 | 539 | PPC_STL r3, HOST_STACK_LR(r1) |
---|