aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/mem.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-03-12 21:43:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-03-12 21:43:50 +0000
commitf15a9cd2881a6448d7f84c36c689adecea8cb5c2 (patch)
tree149c049367c772ec9fd09f40286ef8d47fb46eda /sys/amd64/amd64/mem.c
parenta739eb83744fdf2f72ebe46953ecdc13a0fe6c57 (diff)
downloadsrc-f15a9cd2881a6448d7f84c36c689adecea8cb5c2.tar.gz
src-f15a9cd2881a6448d7f84c36c689adecea8cb5c2.zip
Minimize diffs with i686_mem.c:
- A few whitespace changes I missed in the style(9) changes. - Move M_MEMDESC to mem.c.
Notes
Notes: svn path=/head/; revision=177123
Diffstat (limited to 'sys/amd64/amd64/mem.c')
-rw-r--r--sys/amd64/amd64/mem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index f3280d0dfc75..00f5a8e1a20b 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -67,6 +67,11 @@ __FBSDID("$FreeBSD$");
#include <machine/memdev.h>
+/*
+ * Used in /dev/mem drivers and elsewhere
+ */
+MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
+
/* ARGSUSED */
int
memrw(struct cdev *dev, struct uio *uio, int flags)