diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-05-24 14:55:50 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-05-24 14:55:50 +0000 |
commit | c602678b5761242976dbf74b738a16ebe17d6378 (patch) | |
tree | 786cf4ffdbd99d4f297d339f362c86226e8474b9 /sys/arm64 | |
parent | be37ee791f68c824f30322a1e58b3d40d2589ef3 (diff) | |
download | src-c602678b5761242976dbf74b738a16ebe17d6378.tar.gz src-c602678b5761242976dbf74b738a16ebe17d6378.zip |
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
Notes
Notes:
svn path=/head/; revision=334155
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/machdep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index a4ee1a22d947..1552caaa2e77 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -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 */ |