paravirt.h (a2055abe9c6789cedef29abbdaa488a087faccc3) paravirt.h (6c690ee1039b251e583fc65b28da30e97d6a7385)
1#ifndef _ASM_X86_PARAVIRT_H
2#define _ASM_X86_PARAVIRT_H
3/* Various instructions on x86 need to be replaced for
4 * para-virtualization: those hooks are defined here. */
5
6#ifdef CONFIG_PARAVIRT
7#include <asm/pgtable_types.h>
8#include <asm/asm.h>

--- 47 unchanged lines hidden (view full) ---

56 return PVOP_CALL0(unsigned long, pv_mmu_ops.read_cr2);
57}
58
59static inline void write_cr2(unsigned long x)
60{
61 PVOP_VCALL1(pv_mmu_ops.write_cr2, x);
62}
63
1#ifndef _ASM_X86_PARAVIRT_H
2#define _ASM_X86_PARAVIRT_H
3/* Various instructions on x86 need to be replaced for
4 * para-virtualization: those hooks are defined here. */
5
6#ifdef CONFIG_PARAVIRT
7#include <asm/pgtable_types.h>
8#include <asm/asm.h>

--- 47 unchanged lines hidden (view full) ---

56 return PVOP_CALL0(unsigned long, pv_mmu_ops.read_cr2);
57}
58
59static inline void write_cr2(unsigned long x)
60{
61 PVOP_VCALL1(pv_mmu_ops.write_cr2, x);
62}
63
64static inline unsigned long read_cr3(void)
64static inline unsigned long __read_cr3(void)
65{
66 return PVOP_CALL0(unsigned long, pv_mmu_ops.read_cr3);
67}
68
69static inline void write_cr3(unsigned long x)
70{
71 PVOP_VCALL1(pv_mmu_ops.write_cr3, x);
72}

--- 916 unchanged lines hidden ---
65{
66 return PVOP_CALL0(unsigned long, pv_mmu_ops.read_cr3);
67}
68
69static inline void write_cr3(unsigned long x)
70{
71 PVOP_VCALL1(pv_mmu_ops.write_cr3, x);
72}

--- 916 unchanged lines hidden ---