1*5084Sjohnlev /* 2*5084Sjohnlev * CDDL HEADER START 3*5084Sjohnlev * 4*5084Sjohnlev * The contents of this file are subject to the terms of the 5*5084Sjohnlev * Common Development and Distribution License (the "License"). 6*5084Sjohnlev * You may not use this file except in compliance with the License. 7*5084Sjohnlev * 8*5084Sjohnlev * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5084Sjohnlev * or http://www.opensolaris.org/os/licensing. 10*5084Sjohnlev * See the License for the specific language governing permissions 11*5084Sjohnlev * and limitations under the License. 12*5084Sjohnlev * 13*5084Sjohnlev * When distributing Covered Code, include this CDDL HEADER in each 14*5084Sjohnlev * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5084Sjohnlev * If applicable, add the following below this CDDL HEADER, with the 16*5084Sjohnlev * fields enclosed by brackets "[]" replaced with your own identifying 17*5084Sjohnlev * information: Portions Copyright [yyyy] [name of copyright owner] 18*5084Sjohnlev * 19*5084Sjohnlev * CDDL HEADER END 20*5084Sjohnlev */ 21*5084Sjohnlev 22*5084Sjohnlev /* 23*5084Sjohnlev * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*5084Sjohnlev * Use is subject to license terms. 25*5084Sjohnlev */ 26*5084Sjohnlev 27*5084Sjohnlev #ifndef _IA32_SYS_PRIVMREGS_H 28*5084Sjohnlev #define _IA32_SYS_PRIVMREGS_H 29*5084Sjohnlev 30*5084Sjohnlev #pragma ident "%Z%%M% %I% %E% SMI" 31*5084Sjohnlev 32*5084Sjohnlev #ifdef __cplusplus 33*5084Sjohnlev extern "C" { 34*5084Sjohnlev #endif 35*5084Sjohnlev 36*5084Sjohnlev #if !defined(__i386) 37*5084Sjohnlev #error "non-i386 code depends on i386 privileged header!" 38*5084Sjohnlev #endif 39*5084Sjohnlev 40*5084Sjohnlev #ifndef _ASM 41*5084Sjohnlev 42*5084Sjohnlev #define PM_GREGS (1 << 0) 43*5084Sjohnlev #define PM_CRREGS (1 << 1) 44*5084Sjohnlev #define PM_DRREGS (1 << 2) 45*5084Sjohnlev 46*5084Sjohnlev /* 47*5084Sjohnlev * This structure is intended to represent a complete machine state for a CPU, 48*5084Sjohnlev * when that information is available. It is only for use internally between 49*5084Sjohnlev * KMDB and the kernel, or within MDB. Note that this isn't yet finished. 50*5084Sjohnlev */ 51*5084Sjohnlev typedef struct privmregs { 52*5084Sjohnlev ulong_t pm_flags; 53*5084Sjohnlev /* general registers */ 54*5084Sjohnlev struct regs pm_gregs; 55*5084Sjohnlev /* cr0-8 */ 56*5084Sjohnlev ulong_t pm_cr[8]; 57*5084Sjohnlev /* dr0-8 */ 58*5084Sjohnlev ulong_t pm_dr[8]; 59*5084Sjohnlev } privmregs_t; 60*5084Sjohnlev 61*5084Sjohnlev #endif /* !_ASM */ 62*5084Sjohnlev 63*5084Sjohnlev #ifdef __cplusplus 64*5084Sjohnlev } 65*5084Sjohnlev #endif 66*5084Sjohnlev 67*5084Sjohnlev #endif /* !_IA32_SYS_PRIVMREGS_H */ 68