\ \ Copyright 2005 Sun Microsystems, Inc. All rights reserved. \ Use is subject to license terms. \ \ CDDL HEADER START \ \ The contents of this file are subject to the terms of the \ Common Development and Distribution License, Version 1.0 only \ (the "License"). You may not use this file except in compliance \ with the License. \ \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE \ or http://www.opensolaris.org/os/licensing. \ See the License for the specific language governing permissions \ and limitations under the License. \ \ When distributing Covered Code, include this CDDL HEADER in each \ file and include the License file at usr/src/OPENSOLARIS.LICENSE. \ If applicable, add the following below this CDDL HEADER, with the \ fields enclosed by brackets "[]" replaced with your own identifying \ information: Portions Copyright [yyyy] [name of copyright owner] \ \ CDDL HEADER END \ #pragma ident "%Z%%M% %I% %E% SMI" #include #include #include #include zulu_hat zulu_tsb ZULU_HAT_TSB zulu_tsb_size ZULU_HAT_TSB_SZ zulu_ctx ZULU_HAT_CTX #ifdef ZULUVM_STATS zuluvm_miss_t idata ZULUVM_IDATA arg ZULUVM_ARG mmu_pa ZULUVM_PAMMU state ZULUVM_STATE intr_num ZULUVM_INTRNUM cancel ZULUVM_ST_TLBCANCEL tlb_miss ZULUVM_ST_MISS pagefault ZULUVM_ST_PGFAULT no_mapping ZULUVM_ST_NOMAP preload ZULUVM_ST_PRELOAD migrate ZULUVM_ST_MIGRATE pagesize ZULUVM_ST_PAGESIZE itlb1miss ZULUVM_ST_ITLB1MISS dtlb1miss ZULUVM_ST_DTLB1MISS itlb2miss ZULUVM_ST_ITLB2MISS dtlb2miss ZULUVM_ST_DTLB2MISS demap_page ZULUVM_ST_DEMAP_PAGE demap_ctx ZULUVM_ST_DEMAP_CTX pfnbuf ZULUVM_PFNBUF pfncnt ZULUVM_PFNCNT #else zuluvm_miss_t idata ZULUVM_IDATA arg ZULUVM_ARG mmu_pa ZULUVM_PAMMU state ZULUVM_STATE intr_num ZULUVM_INTRNUM pfnbuf ZULUVM_PFNBUF pfncnt ZULUVM_PFNCNT #endif \#define ZULUVM_OFFSET(a) (ZULUVM_IDATA + ((a) * ZULUVM_IDATA_INCR)) \#define ZULUVM_ASM_TLB_TTE ZULUVM_OFFSET(ZULUVM_TLB_TTE_IDX) \#define ZULUVM_ASM_TLB_ADDR ZULUVM_OFFSET(ZULUVM_TLB_ADDR_IDX) \#define ZULUVM_ASM_TLB_TYPE ZULUVM_OFFSET(ZULUVM_TLB_TYPE_IDX) \#define ZULUVM_ASM_TLB_ERRCODE ZULUVM_OFFSET(ZULUVM_TLB_ERRCODE_IDX)