1*c9de630fSguenther /* $OpenBSD: proc.h,v 1.10 2018/06/05 06:39:11 guenther Exp $ */ 2f5df1827Smickey /* $NetBSD: proc.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */ 3f5df1827Smickey 4f5df1827Smickey /* 5f5df1827Smickey * Copyright (c) 1991 Regents of the University of California. 6f5df1827Smickey * All rights reserved. 7f5df1827Smickey * 8f5df1827Smickey * Redistribution and use in source and binary forms, with or without 9f5df1827Smickey * modification, are permitted provided that the following conditions 10f5df1827Smickey * are met: 11f5df1827Smickey * 1. Redistributions of source code must retain the above copyright 12f5df1827Smickey * notice, this list of conditions and the following disclaimer. 13f5df1827Smickey * 2. Redistributions in binary form must reproduce the above copyright 14f5df1827Smickey * notice, this list of conditions and the following disclaimer in the 15f5df1827Smickey * documentation and/or other materials provided with the distribution. 16c5217b0aSjsg * 3. Neither the name of the University nor the names of its contributors 17f5df1827Smickey * may be used to endorse or promote products derived from this software 18f5df1827Smickey * without specific prior written permission. 19f5df1827Smickey * 20f5df1827Smickey * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21f5df1827Smickey * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22f5df1827Smickey * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23f5df1827Smickey * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24f5df1827Smickey * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25f5df1827Smickey * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26f5df1827Smickey * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27f5df1827Smickey * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28f5df1827Smickey * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29f5df1827Smickey * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30f5df1827Smickey * SUCH DAMAGE. 31f5df1827Smickey * 32f5df1827Smickey * @(#)proc.h 7.1 (Berkeley) 5/15/91 33f5df1827Smickey */ 34f5df1827Smickey 352fa72412Spirofti #ifndef _MACHINE_PROC_H_ 362fa72412Spirofti #define _MACHINE_PROC_H_ 37f5df1827Smickey 38f5df1827Smickey /* 39f5df1827Smickey * Machine-dependent part of the proc structure for amd64. 40f5df1827Smickey */ 416bb85547Sguenther struct trapframe; 42f5df1827Smickey struct mdproc { 43f5df1827Smickey struct trapframe *md_regs; /* registers on current frame */ 44f5df1827Smickey int md_flags; 452df76cc2Sguenther volatile int md_astpending; 46f5df1827Smickey }; 47f5df1827Smickey 48f5df1827Smickey /* md_flags */ 490118571eSguenther #define MDP_IRET 0x0002 /* return via iret, not sysret */ 506bb85547Sguenther /* (iret can restore r11 and rcx) */ 516bb85547Sguenther 522fa72412Spirofti #endif /* _MACHINE_PROC_H_ */ 53