Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/newsmips More changes to make newsmips compile (inc...



details:   https://anonhg.NetBSD.org/src/rev/b657b4ab122d
branches:  trunk
changeset: 750111:b657b4ab122d
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Dec 17 05:29:56 2009 +0000

description:
More changes to make newsmips compile (include "assym.h, remove unused
variables, etc.)

diffstat:

 sys/arch/newsmips/newsmips/locore_machdep.S |  4 +++-
 sys/arch/newsmips/newsmips/machdep.c        |  8 +++-----
 sys/arch/newsmips/stand/boot/Makefile       |  5 ++---
 3 files changed, 8 insertions(+), 9 deletions(-)

diffs (75 lines):

diff -r 4aef538149cc -r b657b4ab122d sys/arch/newsmips/newsmips/locore_machdep.S
--- a/sys/arch/newsmips/newsmips/locore_machdep.S       Thu Dec 17 03:59:31 2009 +0000
+++ b/sys/arch/newsmips/newsmips/locore_machdep.S       Thu Dec 17 05:29:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_machdep.S,v 1.14 2005/12/11 12:18:25 christos Exp $     */
+/*     $NetBSD: locore_machdep.S,v 1.15 2009/12/17 05:29:56 matt Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -60,6 +60,8 @@
 #include <machine/machConst.h>
 #include <machine/param.h>
 
+#include "assym.h"
+
        .set    noreorder
 
 LEAF(to_monitor)
diff -r 4aef538149cc -r b657b4ab122d sys/arch/newsmips/newsmips/machdep.c
--- a/sys/arch/newsmips/newsmips/machdep.c      Thu Dec 17 03:59:31 2009 +0000
+++ b/sys/arch/newsmips/newsmips/machdep.c      Thu Dec 17 05:29:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.106 2009/12/14 00:46:09 matt Exp $       */
+/*     $NetBSD: machdep.c,v 1.107 2009/12/17 05:29:56 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.106 2009/12/14 00:46:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.107 2009/12/17 05:29:56 matt Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -216,9 +216,7 @@
 mach_init(int x_boothowto, int x_bootdev, int x_bootname, int x_maxmem)
 {
        u_long first, last;
-       struct pcb *pcb0;
        char *kernend;
-       vaddr_t v;
        struct btinfo_magic *bi_magic;
        struct btinfo_bootarg *bi_arg;
        struct btinfo_systype *bi_systype;
@@ -378,7 +376,7 @@
        /*
         * Allocate uarea page for lwp0 and set it.
         */
-       pmap_init_lwp0_uarea();
+       mips_init_lwp0_uarea();
 
        /*
         * Determine what model of computer we are running on.
diff -r 4aef538149cc -r b657b4ab122d sys/arch/newsmips/stand/boot/Makefile
--- a/sys/arch/newsmips/stand/boot/Makefile     Thu Dec 17 03:59:31 2009 +0000
+++ b/sys/arch/newsmips/stand/boot/Makefile     Thu Dec 17 05:29:56 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.21 2009/12/16 23:19:07 matt Exp $
+#      $NetBSD: Makefile,v 1.22 2009/12/17 05:29:56 matt Exp $
 
 S!= cd ${.CURDIR}/../../../..; pwd
 
@@ -25,9 +25,8 @@
 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
+AFLAGS= -D_LOCORE -mno-abicalls -DMIPS_KSEG1_START=0xa0000000
 
 LIBS = ${COMMON}/romcalls.o
 LIBS+= ${COMMON}/lib/sa/libsa.a



Home | Main Index | Thread Index | Old Index