proc.h revision 1.5
11.5Syamt/* $NetBSD: proc.h,v 1.5 2003/01/22 12:52:15 yamt Exp $ */ 21.2Scgd 31.1Sragge/* 41.1Sragge * Copyright (c) 1991 Regents of the University of California. 51.1Sragge * All rights reserved. 61.1Sragge * 71.1Sragge * Redistribution and use in source and binary forms, with or without 81.1Sragge * modification, are permitted provided that the following conditions 91.1Sragge * are met: 101.1Sragge * 1. Redistributions of source code must retain the above copyright 111.1Sragge * notice, this list of conditions and the following disclaimer. 121.1Sragge * 2. Redistributions in binary form must reproduce the above copyright 131.1Sragge * notice, this list of conditions and the following disclaimer in the 141.1Sragge * documentation and/or other materials provided with the distribution. 151.1Sragge * 3. All advertising materials mentioning features or use of this software 161.1Sragge * must display the following acknowledgement: 171.1Sragge * This product includes software developed by the University of 181.1Sragge * California, Berkeley and its contributors. 191.1Sragge * 4. Neither the name of the University nor the names of its contributors 201.1Sragge * may be used to endorse or promote products derived from this software 211.1Sragge * without specific prior written permission. 221.1Sragge * 231.1Sragge * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241.1Sragge * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Sragge * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Sragge * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271.1Sragge * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Sragge * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Sragge * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Sragge * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Sragge * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Sragge * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Sragge * SUCH DAMAGE. 341.1Sragge * 351.2Scgd * @(#)proc.h 7.1 (Berkeley) 5/15/91 361.1Sragge */ 371.1Sragge 381.4Sthorpej#ifndef _VAX_PROC_H_ 391.4Sthorpej#define _VAX_PROC_H_ 401.4Sthorpej 411.4Sthorpej/* 421.4Sthorpej * Machine-dependent lwp struct for vax, 431.4Sthorpej */ 441.4Sthorpejstruct mdlwp { 451.4Sthorpej int md_dummy; /* Must be at least one field */ 461.4Sthorpej}; 471.4Sthorpej 481.1Sragge/* 491.4Sthorpej * Machine-dependent part of the proc structure for vax. 501.1Sragge */ 511.1Sraggestruct mdproc { 521.4Sthorpej int md_dummy; /* Must be at least one field */ 531.1Sragge}; 541.1Sragge 551.1Sragge/* md_flags */ 561.1Sragge#define MDP_AST 0x0001 /* async trap pending */ 571.3Syamt 581.3Syamt/* kernel stack params */ 591.5Syamt#define KSTACK_LOWEST_ADDR(l) \ 601.5Syamt ((caddr_t)(l)->l_addr + (REDZONEADDR + VAX_NBPG)) 611.3Syamt#define KSTACK_SIZE \ 621.3Syamt (USPACE - (REDZONEADDR + VAX_NBPG)) 631.4Sthorpej 641.4Sthorpej#endif /* _VAX_PROC_H_ */ 65