aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-09-09 18:11:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-09-09 18:11:59 +0000
commitedb572a38c433b49f2a06fe12bed3f8156e88cfa (patch)
tree42d2ff2e91fcca16534848427856c6243db2126a /usr.bin/kdump
parentd7510453f38b8f16eb426f321c6e638f5a770345 (diff)
downloadsrc-edb572a38c433b49f2a06fe12bed3f8156e88cfa.tar.gz
src-edb572a38c433b49f2a06fe12bed3f8156e88cfa.zip
Add a mmap flag (MAP_32BIT) on 64-bit platforms to request that a mapping use
an address in the first 2GB of the process's address space. This flag should have the same semantics as the same flag on Linux. To facilitate this, add a new parameter to vm_map_find() that specifies an optional maximum virtual address. While here, fix several callers of vm_map_find() to use a VMFS_* constant for the findspace argument instead of TRUE and FALSE. Reviewed by: alc Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=255426
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/mksubr4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index 676e9e223f5e..2a16e37b8f07 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -497,6 +497,10 @@ egrep "^#[[:space:]]*define[[:space:]]+MAP_[A-Z_]+[[:space:]]+0x[0-9A-Fa-f]+[[:s
++i; \
printf "\tif (!((flags > 0) ^ ((%s) > 0)))\n\t\tif_print_or(flags, %s, or);\n", $i, $i }'
cat <<_EOF_
+#ifdef MAP_32BIT
+ if (!((flags > 0) ^ ((MAP_32BIT) > 0)))
+ if_print_or(flags, MAP_32BIT, or);
+#endif
align = flags & MAP_ALIGNMENT_MASK;
if (align != 0) {
if (align == MAP_ALIGNED_SUPER)