Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2018 14:55:50 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334155 - head/sys/arm64/arm64
Message-ID:  <201805241455.w4OEtoCa019417@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805241455.w4OEtoCa019417>