1b5e8ce9fSBruce Evans /*- 2b5e8ce9fSBruce Evans * Copyright (c) 1995 Bruce D. Evans. 3b5e8ce9fSBruce Evans * All rights reserved. 4b5e8ce9fSBruce Evans * 5b5e8ce9fSBruce Evans * Redistribution and use in source and binary forms, with or without 6b5e8ce9fSBruce Evans * modification, are permitted provided that the following conditions 7b5e8ce9fSBruce Evans * are met: 8b5e8ce9fSBruce Evans * 1. Redistributions of source code must retain the above copyright 9b5e8ce9fSBruce Evans * notice, this list of conditions and the following disclaimer. 10b5e8ce9fSBruce Evans * 2. Redistributions in binary form must reproduce the above copyright 11b5e8ce9fSBruce Evans * notice, this list of conditions and the following disclaimer in the 12b5e8ce9fSBruce Evans * documentation and/or other materials provided with the distribution. 13b5e8ce9fSBruce Evans * 3. Neither the name of the author nor the names of contributors 14b5e8ce9fSBruce Evans * may be used to endorse or promote products derived from this software 15b5e8ce9fSBruce Evans * without specific prior written permission. 16b5e8ce9fSBruce Evans * 17b5e8ce9fSBruce Evans * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18b5e8ce9fSBruce Evans * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19b5e8ce9fSBruce Evans * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20b5e8ce9fSBruce Evans * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21b5e8ce9fSBruce Evans * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22b5e8ce9fSBruce Evans * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23b5e8ce9fSBruce Evans * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24b5e8ce9fSBruce Evans * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25b5e8ce9fSBruce Evans * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26b5e8ce9fSBruce Evans * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27b5e8ce9fSBruce Evans * SUCH DAMAGE. 28b5e8ce9fSBruce Evans * 29b5e8ce9fSBruce Evans * $Id: $ 30b5e8ce9fSBruce Evans */ 31b5e8ce9fSBruce Evans 32b5e8ce9fSBruce Evans #ifndef _MACHINE_MD_VAR_H_ 33b5e8ce9fSBruce Evans #define _MACHINE_MD_VAR_H_ 34b5e8ce9fSBruce Evans 35b5e8ce9fSBruce Evans /* 36b5e8ce9fSBruce Evans * Miscellaneous machine-dependent declarations. 37b5e8ce9fSBruce Evans */ 38b5e8ce9fSBruce Evans 39b5e8ce9fSBruce Evans extern int Maxmem; 40b5e8ce9fSBruce Evans extern u_long cpu_feature; 41b5e8ce9fSBruce Evans extern u_long cpu_high; 42b5e8ce9fSBruce Evans extern u_long cpu_id; 43b5e8ce9fSBruce Evans extern char cpu_vendor[]; 44b5e8ce9fSBruce Evans extern char etext[]; 45b5e8ce9fSBruce Evans extern vm_offset_t isaphysmem; 46b5e8ce9fSBruce Evans extern char kstack[]; 47b5e8ce9fSBruce Evans extern void (*netisrs[32]) __P((void)); 48b5e8ce9fSBruce Evans extern int nfs_diskless_valid; 49b5e8ce9fSBruce Evans extern int sigcode; 50b5e8ce9fSBruce Evans extern int szsigcode; 51b5e8ce9fSBruce Evans 52b5e8ce9fSBruce Evans struct proc; 53b5e8ce9fSBruce Evans struct reg; 54b5e8ce9fSBruce Evans 55b5e8ce9fSBruce Evans void configure __P((void)); 56b5e8ce9fSBruce Evans void cpu_reset __P((void)); 57b5e8ce9fSBruce Evans void doreti_iret __P((void)) __asm(__STRING(doreti_iret)); 58b5e8ce9fSBruce Evans void doreti_iret_fault __P((void)) __asm(__STRING(doreti_iret_fault)); 59b5e8ce9fSBruce Evans void doreti_popl_ds __P((void)) __asm(__STRING(doreti_popl_ds)); 60b5e8ce9fSBruce Evans void doreti_popl_ds_fault __P((void)) __asm(__STRING(doreti_popl_ds_fault)); 61b5e8ce9fSBruce Evans void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es)); 62b5e8ce9fSBruce Evans void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault)); 63b5e8ce9fSBruce Evans int fill_regs __P((struct proc *p, struct reg *regs)); 64b5e8ce9fSBruce Evans int mvesp __P((void)); 65b5e8ce9fSBruce Evans void setconf __P((void)); 66b5e8ce9fSBruce Evans void userconfig __P((void)); 67b5e8ce9fSBruce Evans 68b5e8ce9fSBruce Evans #endif /* !_MACHINE_MD_VAR_H_ */ 69