aboutsummaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2022-04-07 15:13:19 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2022-04-11 14:04:08 +0000
commitaec1262c5ef027c96b36d5aaf1fbe5878dcc61d0 (patch)
tree8fa6a9d86be8acf8f3c4b0cc14555b36f526bf9c /sbin/pfctl
parent3a64c08ceb85e6e027c7de26f212cddefdb523a9 (diff)
riscv: eliminate physmap global
Since physical memory management is now handled by subr_physmem.c, the need to keep this global array has diminished. It is not referenced outside of early boot-time, and is populated by physmem_avail() in pmap_bootstrap(). Just allocate the array on the stack for the duration of its lifetime. The check against physmap[0] in initriscv() can be dropped altogether, as there is no consequence for excluding a memory range twice. Reviewed by: markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34778 (cherry picked from commit 8a0339e679aada927966be10f897891b447edb0b)
Diffstat (limited to 'sbin/pfctl')
0 files changed, 0 insertions, 0 deletions