svn commit: r334155 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Thu May 24 14:55:51 UTC 2018
Author: andrew
Date: Thu May 24 14:55:50 2018
New Revision: 334155
URL: https://svnweb.freebsd.org/changeset/base/334155
Log:
Exclude memory from the /reserved-memory mappings with the no-map property
set. This memory must not be mapped by the operating system other than
under control of the device driver.
Obtained from: ABT Systems Ltd
Sponsored by: Turing Robotic Industries
Modified:
head/sys/arm64/arm64/machdep.c
Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c Thu May 24 14:16:22 2018 (r334154)
+++ head/sys/arm64/arm64/machdep.c Thu May 24 14:55:50 2018 (r334155)
@@ -1063,6 +1063,9 @@ initarm(struct arm64_bootparams *abp)
&physmap_idx);
arm_physmem_hardware_regions(mem_regions, mem_regions_sz);
}
+ if (fdt_get_reserved_mem(mem_regions, &mem_regions_sz) == 0)
+ arm_physmem_exclude_regions(mem_regions, mem_regions_sz,
+ EXFLAG_NODUMP | EXFLAG_NOALLOC);
#endif
/* Set the pcpu data, this is needed by pmap_bootstrap */
More information about the svn-src-all
mailing list