kvm_emul.S (e644dae645e167d154c0526358940986682a72b0) | kvm_emul.S (2e1ae9c07df5956ebab19144aa0da58ea37c9f69) |
---|---|
1/* 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 --- 10 unchanged lines hidden (view full) --- 19 */ 20 21#include <asm/ppc_asm.h> 22#include <asm/kvm_asm.h> 23#include <asm/reg.h> 24#include <asm/page.h> 25#include <asm/asm-offsets.h> 26 | 1/* 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 --- 10 unchanged lines hidden (view full) --- 19 */ 20 21#include <asm/ppc_asm.h> 22#include <asm/kvm_asm.h> 23#include <asm/reg.h> 24#include <asm/page.h> 25#include <asm/asm-offsets.h> 26 |
27/* Hypercall entry point. Will be patched with device tree instructions. */ 28 29.global kvm_hypercall_start 30kvm_hypercall_start: 31 li r3, -1 32 nop 33 nop 34 nop 35 blr 36 | |
37#define KVM_MAGIC_PAGE (-4096) 38 39#ifdef CONFIG_64BIT 40#define LL64(reg, offs, reg2) ld reg, (offs)(reg2) 41#define STL64(reg, offs, reg2) std reg, (offs)(reg2) 42#else 43#define LL64(reg, offs, reg2) lwz reg, (offs + 4)(reg2) 44#define STL64(reg, offs, reg2) stw reg, (offs + 4)(reg2) --- 314 unchanged lines hidden --- | 27#define KVM_MAGIC_PAGE (-4096) 28 29#ifdef CONFIG_64BIT 30#define LL64(reg, offs, reg2) ld reg, (offs)(reg2) 31#define STL64(reg, offs, reg2) std reg, (offs)(reg2) 32#else 33#define LL64(reg, offs, reg2) lwz reg, (offs + 4)(reg2) 34#define STL64(reg, offs, reg2) stw reg, (offs + 4)(reg2) --- 314 unchanged lines hidden --- |