17c478bd9Sstevel@tonic-gate\ 27c478bd9Sstevel@tonic-gate\ Copyright 2005 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate\ Use is subject to license terms. 47c478bd9Sstevel@tonic-gate\ 57c478bd9Sstevel@tonic-gate\ CDDL HEADER START 67c478bd9Sstevel@tonic-gate\ 77c478bd9Sstevel@tonic-gate\ The contents of this file are subject to the terms of the 87c478bd9Sstevel@tonic-gate\ Common Development and Distribution License, Version 1.0 only 97c478bd9Sstevel@tonic-gate\ (the "License"). You may not use this file except in compliance 107c478bd9Sstevel@tonic-gate\ with the License. 117c478bd9Sstevel@tonic-gate\ 127c478bd9Sstevel@tonic-gate\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 137c478bd9Sstevel@tonic-gate\ or http://www.opensolaris.org/os/licensing. 147c478bd9Sstevel@tonic-gate\ See the License for the specific language governing permissions 157c478bd9Sstevel@tonic-gate\ and limitations under the License. 167c478bd9Sstevel@tonic-gate\ 177c478bd9Sstevel@tonic-gate\ When distributing Covered Code, include this CDDL HEADER in each 187c478bd9Sstevel@tonic-gate\ file and include the License file at usr/src/OPENSOLARIS.LICENSE. 197c478bd9Sstevel@tonic-gate\ If applicable, add the following below this CDDL HEADER, with the 207c478bd9Sstevel@tonic-gate\ fields enclosed by brackets "[]" replaced with your own identifying 217c478bd9Sstevel@tonic-gate\ information: Portions Copyright [yyyy] [name of copyright owner] 227c478bd9Sstevel@tonic-gate\ 237c478bd9Sstevel@tonic-gate\ CDDL HEADER END 247c478bd9Sstevel@tonic-gate\ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate#include <sys/types.h> 297c478bd9Sstevel@tonic-gate#include <sys/sunddi.h> 307c478bd9Sstevel@tonic-gate#include <sys/zulumod.h> 317c478bd9Sstevel@tonic-gate#include <sys/zulu_hat.h> 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gatezulu_hat 347c478bd9Sstevel@tonic-gate zulu_tsb ZULU_HAT_TSB 357c478bd9Sstevel@tonic-gate zulu_tsb_size ZULU_HAT_TSB_SZ 367c478bd9Sstevel@tonic-gate zulu_ctx ZULU_HAT_CTX 377c478bd9Sstevel@tonic-gate 38*2b616c6cSwesolows#ifdef ZULUVM_STATS 397c478bd9Sstevel@tonic-gatezuluvm_miss_t 407c478bd9Sstevel@tonic-gate idata ZULUVM_IDATA 417c478bd9Sstevel@tonic-gate arg ZULUVM_ARG 427c478bd9Sstevel@tonic-gate mmu_pa ZULUVM_PAMMU 437c478bd9Sstevel@tonic-gate state ZULUVM_STATE 447c478bd9Sstevel@tonic-gate intr_num ZULUVM_INTRNUM 457c478bd9Sstevel@tonic-gate cancel ZULUVM_ST_TLBCANCEL 467c478bd9Sstevel@tonic-gate tlb_miss ZULUVM_ST_MISS 477c478bd9Sstevel@tonic-gate pagefault ZULUVM_ST_PGFAULT 487c478bd9Sstevel@tonic-gate no_mapping ZULUVM_ST_NOMAP 497c478bd9Sstevel@tonic-gate preload ZULUVM_ST_PRELOAD 507c478bd9Sstevel@tonic-gate migrate ZULUVM_ST_MIGRATE 517c478bd9Sstevel@tonic-gate pagesize ZULUVM_ST_PAGESIZE 527c478bd9Sstevel@tonic-gate itlb1miss ZULUVM_ST_ITLB1MISS 537c478bd9Sstevel@tonic-gate dtlb1miss ZULUVM_ST_DTLB1MISS 547c478bd9Sstevel@tonic-gate itlb2miss ZULUVM_ST_ITLB2MISS 557c478bd9Sstevel@tonic-gate dtlb2miss ZULUVM_ST_DTLB2MISS 567c478bd9Sstevel@tonic-gate demap_page ZULUVM_ST_DEMAP_PAGE 577c478bd9Sstevel@tonic-gate demap_ctx ZULUVM_ST_DEMAP_CTX 587c478bd9Sstevel@tonic-gate pfnbuf ZULUVM_PFNBUF 597c478bd9Sstevel@tonic-gate pfncnt ZULUVM_PFNCNT 607c478bd9Sstevel@tonic-gate 61*2b616c6cSwesolows#else 62*2b616c6cSwesolows 63*2b616c6cSwesolowszuluvm_miss_t 64*2b616c6cSwesolows idata ZULUVM_IDATA 65*2b616c6cSwesolows arg ZULUVM_ARG 66*2b616c6cSwesolows mmu_pa ZULUVM_PAMMU 67*2b616c6cSwesolows state ZULUVM_STATE 68*2b616c6cSwesolows intr_num ZULUVM_INTRNUM 69*2b616c6cSwesolows pfnbuf ZULUVM_PFNBUF 70*2b616c6cSwesolows pfncnt ZULUVM_PFNCNT 71*2b616c6cSwesolows#endif 72*2b616c6cSwesolows 737c478bd9Sstevel@tonic-gate\#define ZULUVM_OFFSET(a) (ZULUVM_IDATA + ((a) * ZULUVM_IDATA_INCR)) 747c478bd9Sstevel@tonic-gate\#define ZULUVM_ASM_TLB_TTE ZULUVM_OFFSET(ZULUVM_TLB_TTE_IDX) 757c478bd9Sstevel@tonic-gate\#define ZULUVM_ASM_TLB_ADDR ZULUVM_OFFSET(ZULUVM_TLB_ADDR_IDX) 767c478bd9Sstevel@tonic-gate\#define ZULUVM_ASM_TLB_TYPE ZULUVM_OFFSET(ZULUVM_TLB_TYPE_IDX) 777c478bd9Sstevel@tonic-gate\#define ZULUVM_ASM_TLB_ERRCODE ZULUVM_OFFSET(ZULUVM_TLB_ERRCODE_IDX) 78