Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Remove unused pa variable (it's assigned ...



details:   https://anonhg.NetBSD.org/src/rev/5ac4a25cd8a9
branches:  trunk
changeset: 539205:5ac4a25cd8a9
user:      chris <chris%NetBSD.org@localhost>
date:      Mon Nov 11 08:58:05 2002 +0000

description:
Remove unused pa variable (it's assigned but not used any more)

diffstat:

 sys/arch/arm/arm32/pmap.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 21dc85a9b1dd -r 5ac4a25cd8a9 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Mon Nov 11 06:24:08 2002 +0000
+++ b/sys/arch/arm/arm32/pmap.c Mon Nov 11 08:58:05 2002 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: pmap.c,v 1.118 2002/09/27 15:35:42 provos Exp $        */
+/*     $NetBSD: pmap.c,v 1.119 2002/11/11 08:58:05 chris Exp $ */
 
 /*
  * Copyright (c) 2002 Wasabi Systems, Inc.
  * Copyright (c) 2001 Richard Earnshaw
- * Copyright (c) 2001 Christopher Gilbert
+ * Copyright (c) 2001-2002 Christopher Gilbert
  * All rights reserved.
  *
  * 1. Redistributions of source code must retain the above copyright
@@ -143,7 +143,7 @@
 #include <machine/param.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.118 2002/09/27 15:35:42 provos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.119 2002/11/11 08:58:05 chris Exp $");
 
 #ifdef PMAP_DEBUG
 #define        PDEBUG(_lev_,_stat_) \
@@ -1414,7 +1414,6 @@
 pmap_allocpagedir(struct pmap *pmap)
 {
        vaddr_t vptpt;
-       paddr_t pa;
        struct l1pt *pt;
        u_int gen;
 
@@ -1440,9 +1439,6 @@
        /* Store the pointer to the l1 descriptor in the pmap. */
        pmap->pm_l1pt = pt;
 
-       /* Get the physical address of the start of the l1 */
-       pa = VM_PAGE_TO_PHYS(TAILQ_FIRST(&pt->pt_plist));
-
        /* Store the virtual address of the l1 in the pmap. */
        pmap->pm_pdir = (pd_entry_t *)pt->pt_va;
 



Home | Main Index | Thread Index | Old Index