BSD 4_4 release
[unix-history] / usr / src / sys / i386 / i386 / genassym.c
index 8b84afb..4418085 100644 (file)
@@ -1,37 +1,60 @@
 /*-
 /*-
- * Copyright (c) 1982, 1990 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1982, 1990, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by
  * William Jolitz.
  *
  *
  * This code is derived from software contributed to Berkeley by
  * William Jolitz.
  *
- * %sccs.include.redist.c%
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
  *
  *
- *     @(#)genassym.c  5.11 (Berkeley) %G%
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)genassym.c  8.1 (Berkeley) 6/11/93
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)genassym.c 5.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)genassym.c 8.1 (Berkeley) 6/11/93";
 #endif /* not lint */
 
 #endif /* not lint */
 
-#include "sys/param.h"
-#include "sys/buf.h"
-#include "sys/vmmeter.h"
-#include "sys/cmap.h"
-#include "sys/map.h"
-#include "sys/proc.h"
-#include "sys/user.h"
-#include "sys/mbuf.h"
-#include "sys/msgbuf.h"
-#include "sys/resourcevar.h"
-#include "machine/cpu.h"
-#include "machine/trap.h"
-#include "machine/psl.h"
-#include "machine/reg.h"
-#include "sys/syscall.h"
-#include "vm/vm_param.h"
-#include "vm/vm_map.h"
-#include "machine/pmap.h"
+#define KERNEL
+
+#include <sys/param.h>
+#include <sys/buf.h>
+#include <sys/map.h>
+#include <sys/proc.h>
+#include <sys/mbuf.h>
+#include <sys/msgbuf.h>
+#include <machine/cpu.h>
+#include <machine/trap.h>
+#include <machine/psl.h>
+#include <machine/reg.h>
+#include <sys/syscall.h>
+#include <vm/vm.h>
+#include <sys/user.h>
 
 main()
 {
 
 main()
 {
@@ -65,16 +88,14 @@ main()
        printf("#define\tV_SYSCALL %d\n", &vm->v_syscall);
        printf("#define\tV_INTR %d\n", &vm->v_intr);
        printf("#define\tV_SOFT %d\n", &vm->v_soft);
        printf("#define\tV_SYSCALL %d\n", &vm->v_syscall);
        printf("#define\tV_INTR %d\n", &vm->v_intr);
        printf("#define\tV_SOFT %d\n", &vm->v_soft);
-       printf("#define\tV_PDMA %d\n", &vm->v_pdma);
        printf("#define\tV_FAULTS %d\n", &vm->v_faults);
        printf("#define\tV_FAULTS %d\n", &vm->v_faults);
-       printf("#define\tV_PGREC %d\n", &vm->v_pgrec);
-       printf("#define\tV_FASTPGREC %d\n", &vm->v_fastpgrec);
        printf("#define\tUPAGES %d\n", UPAGES);
        printf("#define\tHIGHPAGES %d\n", HIGHPAGES);
        printf("#define\tCLSIZE %d\n", CLSIZE);
        printf("#define\tNBPG %d\n", NBPG);
        printf("#define\tNPTEPG %d\n", NPTEPG);
        printf("#define\tPGSHIFT %d\n", PGSHIFT);
        printf("#define\tUPAGES %d\n", UPAGES);
        printf("#define\tHIGHPAGES %d\n", HIGHPAGES);
        printf("#define\tCLSIZE %d\n", CLSIZE);
        printf("#define\tNBPG %d\n", NBPG);
        printf("#define\tNPTEPG %d\n", NPTEPG);
        printf("#define\tPGSHIFT %d\n", PGSHIFT);
+       printf("#define\tPDRSHIFT %d\n", PDRSHIFT);
        printf("#define\tSYSPTSIZE %d\n", SYSPTSIZE);
        printf("#define\tUSRPTSIZE %d\n", USRPTSIZE);
        printf("#define\tUSRIOSIZE %d\n", USRIOSIZE);
        printf("#define\tSYSPTSIZE %d\n", SYSPTSIZE);
        printf("#define\tUSRPTSIZE %d\n", USRPTSIZE);
        printf("#define\tUSRIOSIZE %d\n", USRIOSIZE);