diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-05-30 15:37:09 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-05-30 15:37:09 +0000 |
commit | 9b560581609f3d6f306dee997e339327a0d9d88a (patch) | |
tree | 9a3a42802c3e004fc6cb2d1daeca365f3f84b79b /sys/arm64 | |
parent | 0194dcd7a98d84b99bdec3c7c657b6ca213f051d (diff) | |
download | src-9b560581609f3d6f306dee997e339327a0d9d88a.tar.gz src-9b560581609f3d6f306dee997e339327a0d9d88a.zip |
Remove max_pa, it's unused.
Sponsored by: DARPA, AFRL
Notes
Notes:
svn path=/head/; revision=334387
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/pmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index acd1b05469b4..22a7109fc3e3 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -766,7 +766,7 @@ pmap_bootstrap(vm_offset_t l0pt, vm_offset_t l1pt, vm_paddr_t kernstart, 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_paddr_t kernstart, 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_paddr_t kernstart, continue; if (physmap[i] <= min_pa) min_pa = physmap[i]; - if (physmap[i + 1] > max_pa) - max_pa = physmap[i + 1]; } freemempos = KERNBASE + kernlen; |