proc.h revision 1.16
11.16Schristos/* $NetBSD: proc.h,v 1.16 2016/05/22 01:09:09 christos Exp $ */ 21.1Seeh 31.1Seeh/* 41.1Seeh * Copyright (c) 1992, 1993 51.1Seeh * The Regents of the University of California. All rights reserved. 61.1Seeh * 71.1Seeh * This software was developed by the Computer Systems Engineering group 81.1Seeh * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 91.1Seeh * contributed to Berkeley. 101.1Seeh * 111.1Seeh * All advertising materials mentioning features or use of this software 121.1Seeh * must display the following acknowledgement: 131.1Seeh * This product includes software developed by the University of 141.1Seeh * California, Lawrence Berkeley Laboratory. 151.1Seeh * 161.1Seeh * Redistribution and use in source and binary forms, with or without 171.1Seeh * modification, are permitted provided that the following conditions 181.1Seeh * are met: 191.1Seeh * 1. Redistributions of source code must retain the above copyright 201.1Seeh * notice, this list of conditions and the following disclaimer. 211.1Seeh * 2. Redistributions in binary form must reproduce the above copyright 221.1Seeh * notice, this list of conditions and the following disclaimer in the 231.1Seeh * documentation and/or other materials provided with the distribution. 241.4Sagc * 3. Neither the name of the University nor the names of its contributors 251.1Seeh * may be used to endorse or promote products derived from this software 261.1Seeh * without specific prior written permission. 271.1Seeh * 281.1Seeh * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 291.1Seeh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 301.1Seeh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 311.1Seeh * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 321.1Seeh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 331.1Seeh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 341.1Seeh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 351.1Seeh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 361.1Seeh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 371.1Seeh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 381.1Seeh * SUCH DAMAGE. 391.1Seeh * 401.1Seeh * @(#)proc.h 8.1 (Berkeley) 6/11/93 411.1Seeh */ 421.1Seeh 431.3Sthorpej#ifndef _SPARC64_PROC_H 441.3Sthorpej#define _SPARC64_PROC_H 451.3Sthorpej 461.3Sthorpejstruct mdlwp { 471.3Sthorpej struct trapframe64 *md_tf; /* trap/syscall registers */ 481.3Sthorpej struct fpstate64 *md_fpstate; /* fpu state, if any; always resident */ 491.3Sthorpej}; 501.1Seeh/* 511.1Seeh * Machine-dependent part of the proc structure for SPARC. 521.1Seeh */ 531.1Seehstruct mdproc { 541.7Schristos void (*md_syscall)(struct trapframe64 *, register_t, register_t); 551.8Smartin u_long md_flags; 561.1Seeh}; 571.1Seeh 581.1Seeh/* md_flags */ 591.1Seeh#define MDP_FIXALIGN 0x1 /* Fix unaligned memory accesses */ 601.3Sthorpej 611.6Schristos#define netbsd32_syscall_intern syscall_intern 621.6Schristos 631.16Schristos/* Override to account for the VA hole */ 641.16Schristos#define PAX_ASLR_DELTA_MMAP_LEN 18 651.14Schristos 661.3Sthorpej#endif /* _SPARC64_PROC_H */ 67