| Current File : //usr/share/src/uts/i86pc/sys/pc_mmu.h |
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
*/
#ifndef _SYS_PC_MMU_H
#define _SYS_PC_MMU_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Platform-dependent MMU routines and types for real x86 hardware.
*
* WARNING: this header file is used by both dboot and i86pc, so don't go using
* normal kernel headers.
*/
#define IN_HYPERVISOR_VA(va) (__lintzero)
void reload_cr3(void);
#define pa_to_ma(pa) (pa)
#define ma_to_pa(ma) (ma)
#define pfn_to_mfn(pfn) (pfn)
#define mfn_to_pfn(mfn) (mfn)
#ifndef _BOOT
void mmu_tlbflush_entry(caddr_t);
void setcr3(ulong_t);
#if defined(__GNUC__)
#include <asm/mmu.h>
#endif
#endif /* !_BOOT */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PC_MMU_H */