Module Name:    src
Committed By:   matt
Date:           Wed Dec 16 19:02:03 UTC 2009

Modified Files:
        src/sys/arch/sbmips/sbmips: machdep.c

Log Message:
Remove unneeded variables.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/sbmips/sbmips/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/sbmips/sbmips/machdep.c
diff -u src/sys/arch/sbmips/sbmips/machdep.c:1.45 src/sys/arch/sbmips/sbmips/machdep.c:1.46
--- src/sys/arch/sbmips/sbmips/machdep.c:1.45	Fri Nov 27 03:23:13 2009
+++ src/sys/arch/sbmips/sbmips/machdep.c	Wed Dec 16 19:02:03 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.45 2009/11/27 03:23:13 rmind Exp $ */
+/* $NetBSD: machdep.c,v 1.46 2009/12/16 19:02:03 matt Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2009/11/27 03:23:13 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.46 2009/12/16 19:02:03 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_execfmt.h"
@@ -158,9 +158,7 @@
 {
 	void *kernend;
 	u_long first, last;
-	struct pcb *pcb0;
 	extern char edata[], end[];
-	vaddr_t v;
 	int i;
 	uint32_t config;
 
@@ -317,18 +315,12 @@
 	 */
 	mips_init_msgbuf();
 
+	pmap_bootstrap();
+
 	/*
 	 * Allocate uarea for lwp0 and set it.
 	 */
-	v = pmap_steal_memory(USPACE, NULL, NULL);
-	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;
-
-	pmap_bootstrap();
+	mips_init_lwp0_uarea();
 
 	/*
 	 * Initialize debuggers, and break into them, if appropriate.

Reply via email to