summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-03-21 17:17:19 +0000
committerkib <kib@FreeBSD.org>2014-03-21 17:17:19 +0000
commit7390415c588f555cd61255270cf8cb591d0211b7 (patch)
tree3bd4061400ddd12f34cc6bfc2fb108d1cebf2bd1
parent0825c0b36c982160e51be6cdf23febbe9e5e2653 (diff)
downloadFreeBSD-src-7390415c588f555cd61255270cf8cb591d0211b7.zip
FreeBSD-src-7390415c588f555cd61255270cf8cb591d0211b7.tar.gz
Add change forgotten in r263475. Make dmaplimit accessible outside
amd64/pmap.c. Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/amd64/amd64/pmap.c2
-rw-r--r--sys/amd64/include/pmap.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index b62f968..51ac9be 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -321,7 +321,7 @@ SYSCTL_INT(_machdep, OID_AUTO, nkpt, CTLFLAG_RD, &nkpt, 0,
"Number of kernel page table pages allocated on bootup");
static int ndmpdp;
-static vm_paddr_t dmaplimit;
+vm_paddr_t dmaplimit;
vm_offset_t kernel_vm_end = VM_MIN_KERNEL_ADDRESS;
pt_entry_t pg_nx;
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 3918282..e83e07e 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -369,6 +369,7 @@ extern vm_paddr_t phys_avail[];
extern vm_paddr_t dump_avail[];
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;
+extern vm_paddr_t dmaplimit;
#define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode)
#define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0)
OpenPOWER on IntegriCloud