dis_tables.h revision f88012516de80b8841b4dd45ea1b3b2e15dc47d0
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* 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
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
#ifndef _DIS_TABLES_H
#define _DIS_TABLES_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Constants and prototypes for the IA32 disassembler backend. See dis_tables.c
* for usage information and documentation.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/inttypes.h>
/*
* values for cpu mode
*/
#define SIZE16 1
#define SIZE32 2
#define SIZE64 3
#define OPLEN 256
#define PFIXLEN 8
/*
* data structures that must be provided to dtrace_dis86()
*/
typedef struct d86opnd {
} d86opnd_t;
typedef struct dis86 {
int d86_rmindex; /* index of modrm byte or -1 */
char *d86_seg_prefix; /* segment prefix, if any */
int (*d86_check_func)(void *);
int (*d86_get_byte)(void *);
#ifdef DIS_TEXT
int (*d86_sprintf_func)(char *, size_t, const char *, ...);
int d86_flags;
#endif
void *d86_data;
} dis86_t;
#ifdef DIS_TEXT
#endif
#ifdef __cplusplus
}
#endif
#endif /* _DIS_TABLES_H */