summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-02-08 23:54:16 +0000
committerian <ian@FreeBSD.org>2014-02-08 23:54:16 +0000
commit30d95028f0a5b80653b6cba27633bbdca56f156b (patch)
treead73d00c7878919bd17f9c0c2fec2a7ee3a6add2 /sys/conf
parent5da54698fa93663e708069fcb779720291895435 (diff)
downloadFreeBSD-src-30d95028f0a5b80653b6cba27633bbdca56f156b.zip
FreeBSD-src-30d95028f0a5b80653b6cba27633bbdca56f156b.tar.gz
Consolidate code related to setting up physical memory configuration into
a new physmem.c file. The new code provides helper routines that can be used by legacy SoCs and newer FDT-based systems. There are routines to add one or more regions of physically contiguous ram, and exclude one or more physically contiguous regions of ram. Ram can be excluded from crash dumps, from being given over to the vm system for allocation management, or both. After all the included and excluded regions have been added, arm_physmem_init_kernel_globals() processes the regions into the global dump_avail and phys_avail arrays and realmem and physmem variables that communicate memory configuration to the rest of the kernel. Convert all existing SoCs to use the new helper code.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/files.arm1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files.arm b/sys/conf/files.arm
index f2d0244..71478e3 100644
--- a/sys/conf/files.arm
+++ b/sys/conf/files.arm
@@ -33,6 +33,7 @@ arm/arm/mem.c optional mem
arm/arm/minidump_machdep.c optional mem
arm/arm/mp_machdep.c optional smp
arm/arm/nexus.c standard
+arm/arm/physmem.c standard
arm/arm/pl190.c optional pl190
arm/arm/pl310.c optional pl310
arm/arm/pmap.c optional cpu_arm9 | cpu_arm9e | cpu_fa526 | cpu_sa1100 | cpu_sa1110 | cpu_xscale_80219 | cpu_xscale_80321 | cpu_xscale_81342 | cpu_xscale_ixp425 | cpu_xscale_ixp435 | cpu_xscale_pxa2x0
OpenPOWER on IntegriCloud