1*ae115bc7Smrj /* 2*ae115bc7Smrj * CDDL HEADER START 3*ae115bc7Smrj * 4*ae115bc7Smrj * The contents of this file are subject to the terms of the 5*ae115bc7Smrj * Common Development and Distribution License (the "License"). 6*ae115bc7Smrj * You may not use this file except in compliance with the License. 7*ae115bc7Smrj * 8*ae115bc7Smrj * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*ae115bc7Smrj * or http://www.opensolaris.org/os/licensing. 10*ae115bc7Smrj * See the License for the specific language governing permissions 11*ae115bc7Smrj * and limitations under the License. 12*ae115bc7Smrj * 13*ae115bc7Smrj * When distributing Covered Code, include this CDDL HEADER in each 14*ae115bc7Smrj * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*ae115bc7Smrj * If applicable, add the following below this CDDL HEADER, with the 16*ae115bc7Smrj * fields enclosed by brackets "[]" replaced with your own identifying 17*ae115bc7Smrj * information: Portions Copyright [yyyy] [name of copyright owner] 18*ae115bc7Smrj * 19*ae115bc7Smrj * CDDL HEADER END 20*ae115bc7Smrj */ 21*ae115bc7Smrj /* 22*ae115bc7Smrj * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*ae115bc7Smrj * Use is subject to license terms. 24*ae115bc7Smrj */ 25*ae115bc7Smrj 26*ae115bc7Smrj #ifndef _SYS_PC_MMU_H 27*ae115bc7Smrj #define _SYS_PC_MMU_H 28*ae115bc7Smrj 29*ae115bc7Smrj #pragma ident "%Z%%M% %I% %E% SMI" 30*ae115bc7Smrj 31*ae115bc7Smrj #ifdef __cplusplus 32*ae115bc7Smrj extern "C" { 33*ae115bc7Smrj #endif 34*ae115bc7Smrj 35*ae115bc7Smrj /* 36*ae115bc7Smrj * Platform-dependent MMU routines and types for real x86 hardware. 37*ae115bc7Smrj * 38*ae115bc7Smrj * WARNING: this header file is used by both dboot and i86pc, so don't go using 39*ae115bc7Smrj * normal kernel headers. 40*ae115bc7Smrj */ 41*ae115bc7Smrj 42*ae115bc7Smrj #define IN_HYPERVISOR_VA(va) (__lintzero) 43*ae115bc7Smrj 44*ae115bc7Smrj void reload_cr3(void); 45*ae115bc7Smrj 46*ae115bc7Smrj #define pa_to_ma(pa) (pa) 47*ae115bc7Smrj #define ma_to_pa(ma) (ma) 48*ae115bc7Smrj #define pfn_to_mfn(pfn) (pfn) 49*ae115bc7Smrj #define mfn_to_pfn(mfn) (mfn) 50*ae115bc7Smrj 51*ae115bc7Smrj #ifndef _BOOT 52*ae115bc7Smrj 53*ae115bc7Smrj void mmu_tlbflush_entry(caddr_t); 54*ae115bc7Smrj void setcr3(ulong_t); 55*ae115bc7Smrj 56*ae115bc7Smrj #if defined(__GNUC__) 57*ae115bc7Smrj #include <asm/mmu.h> 58*ae115bc7Smrj #endif 59*ae115bc7Smrj 60*ae115bc7Smrj #endif /* !_BOOT */ 61*ae115bc7Smrj 62*ae115bc7Smrj #ifdef __cplusplus 63*ae115bc7Smrj } 64*ae115bc7Smrj #endif 65*ae115bc7Smrj 66*ae115bc7Smrj #endif /* _SYS_PC_MMU_H */ 67