Deleted Added
full compact
1/*-
2 * Copyright (c) 1995 Bruce D. Evans.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id: md_var.h,v 1.7 1996/02/04 21:20:52 davidg Exp $
29 * $Id: md_var.h,v 1.8 1996/03/02 19:37:45 peter Exp $
30 */
31
32#ifndef _MACHINE_MD_VAR_H_
33#define _MACHINE_MD_VAR_H_
34
35/*
36 * Miscellaneous machine-dependent declarations.
37 */
38
39extern int Maxmem;
40extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
41extern u_long cpu_feature;
42extern u_long cpu_high;
43extern u_long cpu_id;
44extern char cpu_vendor[];
45extern char etext[];
46extern char kstack[];
47extern void (*netisrs[32]) __P((void));
48extern int nfs_diskless_valid;
49extern char sigcode[];
50extern int szsigcode;
51
52typedef void alias_for_inthand_t __P((u_int cs, u_int ef, u_int esp, u_int ss));
53struct proc;
54struct reg;
55
56void bcopyb __P((const void *from, void *to, size_t len));
57void cpu_reset __P((void));
58void doreti_iret __P((void)) __asm(__STRING(doreti_iret));
59void doreti_iret_fault __P((void)) __asm(__STRING(doreti_iret_fault));
60void doreti_popl_ds __P((void)) __asm(__STRING(doreti_popl_ds));
61void doreti_popl_ds_fault __P((void)) __asm(__STRING(doreti_popl_ds_fault));
62void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es));
63void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault));
64int fill_regs __P((struct proc *p, struct reg *regs));
65void fillw __P((int /*u_short*/ pat, void *base, size_t cnt));
66int fusword __P((void *base));
67u_long kvtop __P((void *addr));
68void setidt __P((int idx, alias_for_inthand_t *func, int typ, int dpl,
69 int selec));
70void userconfig __P((void));
71void vm_bounce_init __P((void));
72int vm_page_zero_idle __P((void));
73
74#endif /* !_MACHINE_MD_VAR_H_ */