Module Name:    src
Committed By:   matt
Date:           Wed Dec 16 23:19:07 UTC 2009

Modified Files:
        src/sys/arch/arc/arc: machdep.c wired_map_machdep.c
        src/sys/arch/arc/include: elf_machdep.h vmparam.h
        src/sys/arch/arc/isa: isabus.c
        src/sys/arch/hpcmips/hpcmips: machdep.c
        src/sys/arch/mipsco/mipsco: machdep.c
        src/sys/arch/newsmips/stand/boot: Makefile
        src/sys/arch/sgimips/sgimips: machdep.c

Log Message:
Fix various build with the 32bit mips ports after the mips64 merge.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/sys/arch/arc/arc/machdep.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arc/arc/wired_map_machdep.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arc/include/elf_machdep.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arc/include/vmparam.h
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/arc/isa/isabus.c
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/hpcmips/hpcmips/machdep.c
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/mipsco/mipsco/machdep.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/newsmips/stand/boot/Makefile
cvs rdiff -u -r1.131 -r1.132 src/sys/arch/sgimips/sgimips/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arc/arc/machdep.c
diff -u src/sys/arch/arc/arc/machdep.c:1.118 src/sys/arch/arc/arc/machdep.c:1.119
--- src/sys/arch/arc/arc/machdep.c:1.118	Fri Nov 27 03:23:04 2009
+++ src/sys/arch/arc/arc/machdep.c	Wed Dec 16 23:19:06 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.118 2009/11/27 03:23:04 rmind Exp $	*/
+/*	$NetBSD: machdep.c,v 1.119 2009/12/16 23:19:06 matt Exp $	*/
 /*	$OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $	*/
 
 /*
@@ -78,7 +78,7 @@
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.118 2009/11/27 03:23:04 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.119 2009/12/16 23:19:06 matt Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -231,8 +231,6 @@
 	int i;
 	paddr_t kernstartpfn, kernendpfn, first, last;
 	char *kernend;
-	struct pcb *pcb0;
-	vaddr_t v;
 #if NKSYMS > 0 || defined(DDB) || defined(MODULAR)
 	char *ssym = NULL;
 	char *esym = NULL;
@@ -491,13 +489,8 @@
 	/*
 	 * Allocate uarea page for lwp0 and set it.
 	 */
-	v = uvm_pageboot_alloc(USPACE);
-	uvm_lwp_setuarea(&lwp0, v);
+	mips_init_lwp0_uarea();
 
-	pcb0 = lwp_getpcb(&lwp0);
-	pcb0->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */
-
-	lwp0.l_md.md_regs = (struct frame *)(v + USPACE) - 1;
 }
 
 void

Index: src/sys/arch/arc/arc/wired_map_machdep.c
diff -u src/sys/arch/arc/arc/wired_map_machdep.c:1.5 src/sys/arch/arc/arc/wired_map_machdep.c:1.6
--- src/sys/arch/arc/arc/wired_map_machdep.c:1.5	Thu Feb 22 05:09:01 2007
+++ src/sys/arch/arc/arc/wired_map_machdep.c	Wed Dec 16 23:19:06 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: wired_map_machdep.c,v 1.5 2007/02/22 05:09:01 thorpej Exp $	*/
+/*	$NetBSD: wired_map_machdep.c,v 1.6 2009/12/16 23:19:06 matt Exp $	*/
 
 /*-
  * Copyright (C) 2000 Shuichiro URATA.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wired_map_machdep.c,v 1.5 2007/02/22 05:09:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wired_map_machdep.c,v 1.6 2009/12/16 23:19:06 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -169,7 +169,7 @@
 vaddr_t
 arc_map_wired(paddr_t pa, vsize_t size)
 {
-	vaddr_t va;
+	u_long va;
 	vsize_t off;
 	int error;
 
@@ -183,7 +183,7 @@
 	    MIPS3_WIRED_ENTRY_SIZE(MIPS3_WIRED_SIZE) >
 	    MIPS3_NWIRED_ENTRY - mips3_nwired_page) {
 #ifdef DIAGNOSTIC
-		printf("arc_map_wired(0x%llx, 0x%lx): %d is not enough\n",
+		printf("arc_map_wired(0x%"PRIxPADDR", 0x%"PRIxVSIZE"): %d is not enough\n",
 		    pa + off, size - off,
 		    MIPS3_NWIRED_ENTRY - mips3_nwired_page);
 #endif

Index: src/sys/arch/arc/include/elf_machdep.h
diff -u src/sys/arch/arc/include/elf_machdep.h:1.4 src/sys/arch/arc/include/elf_machdep.h:1.5
--- src/sys/arch/arc/include/elf_machdep.h:1.4	Mon Jan 31 15:51:35 2000
+++ src/sys/arch/arc/include/elf_machdep.h	Wed Dec 16 23:19:06 2009
@@ -1,11 +1,3 @@
-/*	$NetBSD: elf_machdep.h,v 1.4 2000/01/31 15:51:35 soda Exp $	*/
+/*	$NetBSD: elf_machdep.h,v 1.5 2009/12/16 23:19:06 matt Exp $	*/
 
 #include <mips/elf_machdep.h>
-
-/*
- * arc is mipsel platform
- */
-
-#define ELF32_MACHDEP_ENDIANNESS	ELFDATA2LSB
-
-#define ELF64_MACHDEP_ENDIANNESS	XXX	/* break compilation */

Index: src/sys/arch/arc/include/vmparam.h
diff -u src/sys/arch/arc/include/vmparam.h:1.9 src/sys/arch/arc/include/vmparam.h:1.10
--- src/sys/arch/arc/include/vmparam.h:1.9	Sun Dec 11 12:16:39 2005
+++ src/sys/arch/arc/include/vmparam.h	Wed Dec 16 23:19:06 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.9 2005/12/11 12:16:39 christos Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.10 2009/12/16 23:19:06 matt Exp $	*/
 /*	$OpenBSD: vmparam.h,v 1.3 1997/04/19 17:19:59 pefo Exp $	*/
 /*	NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd Exp 	*/
 
@@ -14,11 +14,9 @@
 /*
  * Maximum number of contigous physical memory segment.
  */
+#undef	VM_PHYSSEG_MAX
 #define	VM_PHYSSEG_MAX		16
 
-#define	VM_NFREELIST		1
-#define	VM_FREELIST_DEFAULT	0
-
 #ifndef KSEG2IOBUFSIZE
 #define KSEG2IOBUFSIZE	kseg2iobufsize	/* reserve PTEs for KSEG2 I/O space */
 

Index: src/sys/arch/arc/isa/isabus.c
diff -u src/sys/arch/arc/isa/isabus.c:1.46 src/sys/arch/arc/isa/isabus.c:1.47
--- src/sys/arch/arc/isa/isabus.c:1.46	Fri Nov 27 03:23:04 2009
+++ src/sys/arch/arc/isa/isabus.c	Wed Dec 16 23:19:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: isabus.c,v 1.46 2009/11/27 03:23:04 rmind Exp $	*/
+/*	$NetBSD: isabus.c,v 1.47 2009/12/16 23:19:07 matt Exp $	*/
 /*	$OpenBSD: isabus.c,v 1.15 1998/03/16 09:38:46 pefo Exp $	*/
 /*	NetBSD: isa.c,v 1.33 1995/06/28 04:30:51 cgd Exp 	*/
 
@@ -120,7 +120,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.46 2009/11/27 03:23:04 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.47 2009/12/16 23:19:07 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -216,7 +216,7 @@
 
         if (pnp)
                 aprint_normal("isa at %s", pnp);
-        aprint_verbose(" isa_io_base 0x%lx isa_mem_base 0x%lx",
+        aprint_verbose(" isa_io_base 0x%"PRIxVADDR" isa_mem_base 0x%"PRIxVADDR,
 	    arc_bus_io.bs_vbase, arc_bus_mem.bs_vbase);
         return UNCONF;
 }

Index: src/sys/arch/hpcmips/hpcmips/machdep.c
diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.106 src/sys/arch/hpcmips/hpcmips/machdep.c:1.107
--- src/sys/arch/hpcmips/hpcmips/machdep.c:1.106	Mon Dec 14 00:46:04 2009
+++ src/sys/arch/hpcmips/hpcmips/machdep.c	Wed Dec 16 23:19:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.106 2009/12/14 00:46:04 matt Exp $	*/
+/*	$NetBSD: machdep.c,v 1.107 2009/12/16 23:19:07 matt Exp $	*/
 
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
@@ -108,7 +108,7 @@
  */
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.106 2009/12/14 00:46:04 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.107 2009/12/16 23:19:07 matt Exp $");
 
 #include "opt_vr41xx.h"
 #include "opt_tx39xx.h"
@@ -263,7 +263,6 @@
 #if NKSYMS || defined(DDB) || defined(MODULAR)
 	extern void *esym;
 #endif
-	struct pcb *pcb0;
 	void *kernend;
 	char *cp;
 	int i;

Index: src/sys/arch/mipsco/mipsco/machdep.c
diff -u src/sys/arch/mipsco/mipsco/machdep.c:1.69 src/sys/arch/mipsco/mipsco/machdep.c:1.70
--- src/sys/arch/mipsco/mipsco/machdep.c:1.69	Fri Nov 27 03:23:11 2009
+++ src/sys/arch/mipsco/mipsco/machdep.c	Wed Dec 16 23:19:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.69 2009/11/27 03:23:11 rmind Exp $	*/
+/*	$NetBSD: machdep.c,v 1.70 2009/12/16 23:19:07 matt Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -76,7 +76,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.69 2009/11/27 03:23:11 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.70 2009/12/16 23:19:07 matt Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -229,9 +229,7 @@
 mach_init(int argc, char *argv[], char *envp[], u_int bim, char *bip)
 {
 	u_long first, last;
-	struct pcb *pcb0;
 	char *kernend;
-	vaddr_t v;
 	char *cp;
 	int i, howto;
 	extern char edata[], end[];
@@ -370,13 +368,7 @@
 	/*
 	 * Allocate uarea page for lwp0 and set it.
 	 */
-	v = uvm_pageboot_alloc(USPACE);
-	uvm_lwp_setuarea(&lwp0, v);
-
-	pcb0 = lwp_getpcb(&lwp0);
-	pcb0->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */
-
-	lwp0.l_md.md_regs = (struct frame *)(v + USPACE) - 1;
+	mips_init_lwp0_uarea();
 
 	/*
 	 * Set up interrupt handling and I/O addresses.

Index: src/sys/arch/newsmips/stand/boot/Makefile
diff -u src/sys/arch/newsmips/stand/boot/Makefile:1.20 src/sys/arch/newsmips/stand/boot/Makefile:1.21
--- src/sys/arch/newsmips/stand/boot/Makefile:1.20	Wed Apr 15 17:15:13 2009
+++ src/sys/arch/newsmips/stand/boot/Makefile	Wed Dec 16 23:19:07 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2009/04/15 17:15:13 tsutsui Exp $
+#	$NetBSD: Makefile,v 1.21 2009/12/16 23:19:07 matt Exp $
 
 S!= cd ${.CURDIR}/../../../..; pwd
 
@@ -25,6 +25,7 @@
 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
 CPPFLAGS+= -I${.CURDIR} -I. -I${S}
 CPPFLAGS+= -D__daddr_t=int32_t
+CPPFLAGS+= -DMIPS_KSEG1_START=0xa0000000
 
 AFLAGS= -D_LOCORE -mno-abicalls
 

Index: src/sys/arch/sgimips/sgimips/machdep.c
diff -u src/sys/arch/sgimips/sgimips/machdep.c:1.131 src/sys/arch/sgimips/sgimips/machdep.c:1.132
--- src/sys/arch/sgimips/sgimips/machdep.c:1.131	Mon Dec 14 00:46:14 2009
+++ src/sys/arch/sgimips/sgimips/machdep.c	Wed Dec 16 23:19:07 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.131 2009/12/14 00:46:14 matt Exp $	*/
+/*	$NetBSD: machdep.c,v 1.132 2009/12/16 23:19:07 matt Exp $	*/
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.131 2009/12/14 00:46:14 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.132 2009/12/16 23:19:07 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -283,10 +283,9 @@
 	int firstpfn, lastpfn;
 	vsize_t size;
 	struct arcbios_mem *mem;
-	struct pcb *pcb0;
 	const char *cpufreq, *osload;
 	char *bootpath = NULL;
-	vaddr_t kernend, v;
+	vaddr_t kernend;
 	int kernstartpfn, kernendpfn;
 	int i, rv;
 #if NKSYMS > 0 || defined(DDB) || defined(MODULAR)

Reply via email to