Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 15:37:09 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334387 - head/sys/arm64/arm64
Message-ID:  <201805301537.w4UFb9kr023710@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Wed May 30 15:37:09 2018
New Revision: 334387
URL: https://svnweb.freebsd.org/changeset/base/334387

Log:
  Remove max_pa, it's unused.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/arm64/arm64/pmap.c

Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c	Wed May 30 15:32:31 2018	(r334386)
+++ head/sys/arm64/arm64/pmap.c	Wed May 30 15:37:09 2018	(r334387)
@@ -766,7 +766,7 @@ pmap_bootstrap(vm_offset_t l0pt, vm_offset_t l1pt, vm_
 	pt_entry_t *l2;
 	vm_offset_t va, freemempos;
 	vm_offset_t dpcpu, msgbufpv;
-	vm_paddr_t start_pa, pa, max_pa, min_pa;
+	vm_paddr_t start_pa, pa, min_pa;
 	int i;
 
 	kern_delta = KERNBASE - kernstart;
@@ -780,7 +780,7 @@ pmap_bootstrap(vm_offset_t l0pt, vm_offset_t l1pt, vm_
 	PMAP_LOCK_INIT(kernel_pmap);
 
 	/* Assume the address we were loaded to is a valid physical address */
-	min_pa = max_pa = KERNBASE - kern_delta;
+	min_pa = KERNBASE - kern_delta;
 
 	physmap_idx = arm_physmem_avail(physmap, nitems(physmap));
 	physmap_idx /= 2;
@@ -794,8 +794,6 @@ pmap_bootstrap(vm_offset_t l0pt, vm_offset_t l1pt, vm_
 			continue;
 		if (physmap[i] <= min_pa)
 			min_pa = physmap[i];
-		if (physmap[i + 1] > max_pa)
-			max_pa = physmap[i + 1];
 	}
 
 	freemempos = KERNBASE + kernlen;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805301537.w4UFb9kr023710>